fixing search to use search_index