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