Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top