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

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

2011-05-20 Thread Steven A Rowe
Hi Renaud, That's normal behavior, since you have AND as default operator. This is equivalent to placing a + in front of every element of your query. In fact, if you removed the other two +s, you would get the same behavior. I think you'll get what you want by just switching the default

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

2011-05-20 Thread Renaud Delbru
hi, not necessarily, I would have expected that the default AND operator applies whenever no other operators are precised in the query. As said in [1], 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

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