Re: Query Parser, Unary Operators and Multi-Field Query

2011-05-21 Thread Renaud Delbru
On 20/05/11 19:26, Steven A Rowe wrote: cat +dog -fox Selects documents which must contain dog and must not contain fox. Documents will rank higher if cat is present, but it is not required. I would have expected such behaviour, whatever Default Operator as been defined. But it seems

Query Parser, Unary Operators and Multi-Field Query

2011-05-20 Thread Renaud Delbru
Hi, The behaviour of the query parser (either the standard lucene query parser, or the query parser contrib) is not what I expect when I am using - unary operators - a multi-field query - AND as default operator. For example, let say I have two field fieldA and fieldB, and the following

RE: Query Parser, Unary Operators and Multi-Field Query

2011-05-20 Thread Steven A Rowe
operator to OR? Steve -Original Message- From: Renaud Delbru [mailto:renaud.del...@deri.org] Sent: Friday, May 20, 2011 5:10 AM To: java-user@lucene.apache.org Subject: Query Parser, Unary Operators and Multi-Field Query Hi, The behaviour of the query parser (either the standard

Re: Query Parser, Unary Operators and Multi-Field Query

2011-05-20 Thread Renaud Delbru
, Unary Operators and Multi-Field Query Hi, The behaviour of the query parser (either the standard lucene query parser, or the query parser contrib) is not what I expect when I am using - unary operators - a multi-field query - AND as default operator. For example, let say I have two field fieldA

RE: Query Parser, Unary Operators and Multi-Field Query

2011-05-20 Thread Steven A Rowe
Hi Renaud, On 5/20/2011 at 1:58 PM, Renaud Delbru wrote: As said in http://lucidworks.lucidimagination.com/display/LWEUG/Boolean+Operators, if one or more of the terms in a term list has an explicit term operator (+ or - or relational operator) the rest of the terms will be treated as