added method get_index_state
added method get_index_state