Hi Uwe,
Uwe Schindler schrieb:
Hi Mike,
if you want to mix and/or in one query, always use parenthesis. The
operator precedence is strange with the default query parser. In
contrib there is another one (called PrecedenceQueryParser) that can
handle this but is incompatible with existing queries
Chris Hostetter schrieb:
: if you want to mix and/or in one query, always use parenthesis. The
or better yet, train yourself not to use AND, OR and NOT...
http://www.lucidimagination.com/blog/2011/12/28/why-not-and-or-and-not/
Thanks for the blog entry. I will read through that!
---
Anna Hunecke schrieb:
Hi Mike,
I think the problem is grouping. If you have a query A AND B OR C, it will be
grouped as A AND (B OR C) and not as you expected as (A AND B) OR C.
Just put parentheses in your query and you get the result that you want.
Hi Anna,
This is it but the documentation
it.org]
> Sent: Tuesday, January 03, 2012 6:12 PM
> To: java-user@lucene.apache.org
> Subject: RE: Boolean OR does not work as described
>
>
> : if you want to mix and/or in one query, always use parenthesis. The
>
> or better yet, train yourself not to us
: if you want to mix and/or in one query, always use parenthesis. The
or better yet, train yourself not to use AND, OR and NOT...
http://www.lucidimagination.com/blog/2011/12/28/why-not-and-or-and-not/
-Hoss
-
To unsubscribe
Hi folks,
I have a query result problem I do not understand. The documentation for Lucene
3.2 query syntax says the following about boolean OR queries: "The OR operator
links two terms and finds a matching document if either of the terms exist in a
document. This is equivalent to a union using
Hi folks,
I have a query result problem I do not understand. The documentation for Lucene
3.2 query syntax says the following about boolean OR queries: "The OR operator
links two terms and finds a matching document if either of the terms exist in a
document. This is equivalent to a union using
)
-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: 1983-01...@gmx.net [mailto:1983-01...@gmx.net]
> Sent: Tuesday, January 03, 2012 4:41 PM
> To: java-user@lucene.apache.org
> Subject: Bool
...@gmx.net [mailto:1983-01...@gmx.net]
Gesendet: Dienstag, 3. Januar 2012 16:41
An: java-user@lucene.apache.org
Betreff: Boolean OR does not work as described
Hi folks,
I have a query result problem I do not understand. The documentation for Lucene
3.2 query syntax says the following about boolean OR
Hi folks,
I have a query result problem I do not understand. The documentation for Lucene
3.2 query syntax says the following about boolean OR queries: "The OR operator
links two terms and finds a matching document if either of the terms exist in a
document. This is equivalent to a union using
10 matches
Mail list logo