--- On Thu, 10/21/10, jmr <[email protected]> wrote:

> From: jmr <[email protected]>
> Subject: A bug in ComplexPhraseQuery ?
> To: [email protected]
> Date: Thursday, October 21, 2010, 12:53 PM
> 
> Hi,
> 
> We have installed ComplexPhraseQuery and since that we can
> see strange
> behaviour in proximity search.
> 
> We have the 2 following queries:
> (text:("protein digest"~50))
> (text:("digest protein"~50))
> 
> Without ComplexPhraseQuery, both queries are returning 6
> documents matching.
> With ComplexPhraseQuery, query 1 returns 4 documents and
> query 2 returns 5
> documents!
> 
> It seems that proximity search is broken. Is this a known
> problem ?

ComplexPhraseQuery is ordered phrase query where default Lucene's PhraseQuery 
is unordered. With ComplexPhrase order or terms are important.


      

Reply via email to