Вопрос

Consider following two queries: query1: term1 term2 query2: term1 term1 term2 Will there be any difference in searched documents ordering?? I mean will solr give more weightage to "term1" in query2. As per my understanding solr should do that. But I am not sure and need comments from community.

Это было полезно?

Решение

Yes, but there is no need to use a hack like this. You can boost a query term, like:

term1^2 term2

See the QueryParser syntax documentation

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top