directing a seach-query to the most relevant index