lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <DOR...@il.ibm.com>
Subject Re: Suspected problem in the QueryParser
Date Wed, 16 May 2007 18:00:07 GMT
> Query           Parsed As                 Matches  Matches
> -----           ---------                 -------- -------
> NOT B           -body:B                     2, 4   <none>
> *:* NOT B       MatchAllDocsQuery -body:B   2, 4   2, 4, 5
> *.* AND NOT B   +MatchAllDocsQuery -body:B  2, 4   2, 4, 5

Last line should be  ":" AND NOT B

>
> Can someone explain why doc 5 is matched for both "*:* NOT B" and
> "*.* AND NOT B"?
>
> Are my Expected Matches incorrect?

Your expectations are correct.
This works for me as expected in both current trunk and
official 2.1, returning only {2,4} in both last cases, so
I suspect it is something in your code...

Doron


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message