문제

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