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

RE: Boolean OR does not work as described

2012-01-03 Thread Uwe Schindler
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. The parser in contrib on the