lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "david m" <dmat...@gmail.com>
Subject Re: Suspected problem in the QueryParser
Date Wed, 16 May 2007 19:27:37 GMT
Pilot error... I had a cut & paste error and was indexing "C D" as the
document I said I was indexing as "D".   Sorry about that.

Thanks, david.

On 5/16/07, Doron Cohen <DORONC@il.ibm.com> wrote:
> > 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
>
>

---------------------------------------------------------------------
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