Best practices in boosting by proximity?

2013-05-04 Thread Gili Nachum
Hi. *I would like for hits that contain the search terms in proximity to each other to be ranked higher than hits in which the terms are scattered across the doc. Wondering if there's a best practice to achieve that?* I also want that all hits will contain all of the search terms (implicit AND): *

Re: Best practices in boosting by proximity?

2013-05-04 Thread Karl Wettin
The most simple solution is to use of slop in PhraseQuery, SpanNearQuery, etc(?). Also consider permutations of #isInOrder() with alternative query boosts. Even though slop will create a greater score the closer the terms are, it might still in some cases (usually when combined with other subq

Re: Best practices in boosting by proximity?

2013-05-04 Thread Karl Wettin
I just realized this mail contained several incomplete sentences. I blame norwegian beers. Please allow me to try it once again: The most simple solution is to make use of slop in PhraseQuery, SpanNearQuery, etc(?). Also consider permutations of #isInOrder() with alternative query boosts. Eve