added index search.