Re: Boolean OR does not work as described

2012-01-03 Thread Michael-O
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

Re: Boolean OR does not work as described

2012-01-03 Thread Michael-O
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! ---

Re: AW: Boolean OR does not work as described

2012-01-03 Thread Michael-O
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

RE: Boolean OR does not work as described

2012-01-03 Thread Uwe Schindler
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

RE: Boolean OR does not work as described

2012-01-03 Thread Chris Hostetter
: 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

Boolean OR does not work as described

2012-01-03 Thread 1983-01-06
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

Boolean OR does not work as described

2012-01-03 Thread 1983-01-06
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

RE: Boolean OR does not work as described

2012-01-03 Thread Uwe Schindler
) - 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

AW: Boolean OR does not work as described

2012-01-03 Thread Anna Hunecke
...@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

Boolean OR does not work as described

2012-01-03 Thread 1983-01-06
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