Improving the query relevance