Hi,

SpanNearQuery will also take into account the ‘width’ of the match, so that 
terms that are closer together will score more highly.  Is that what you’re 
looking for?

Alan Woodward
www.flax.co.uk


On 10 Sep 2015, at 10:43, aurelien.mazo...@francelabs.com wrote:

> Hi all,
> 
> SpanNearQuery and SloppyPhraseQuery can have similar behavior in some use 
> cases. On the one hand, I have to distinguish between ordered and unordered 
> terms (that’s enabled with SpanNearQuery) but on the other hand, I want to 
> use the SloppyPhraseScorer, that takes the relative positions of the terms 
> into account for the score calculation. As far I understood, this is possible 
> with SloppyPhraseQuery but not with SpanNearQuery. Do you think there is 
> there a way to combine these two features to have the best of both worlds?
> 
> Thanks!
> 
> Aurélien
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
> 

Reply via email to