use only one index for the search and sort by rank, improve performance