improved indexed_search for models