Re: Strange boolean query behaviour on 5.5.4

2017-07-05 Thread Bram Van Dam
On 04/07/17 18:10, Erick Erickson wrote: > I think you'll get what you expect by something like: > (*:* -someField:Foo) AND (otherField: (Bar OR Baz)) Yeah that's what I figured. It's not a big deal since we generate Solr syntax using a parser/generator on top of our own query syntax. Still a litt

Re: Strange boolean query behaviour on 5.5.4

2017-07-04 Thread Erick Erickson
First of all, Solr doesn't implement strict boolean logic, see Hoss' explanation here: https://lucidworks.com/2011/12/28/why-not-and-or-and-not/ And bare "not" operators are a pain. There's actually _some_ trickery _some_ places to help you out (fq clauses come to mind) and prepend *:* for you. I

Strange boolean query behaviour on 5.5.4

2017-07-04 Thread Bram Van Dam
Hey folks, I'm experiencing some strange query behaviour, and it isn't immediately clear to me why this wouldn happen. The definition of the query syntax on the wiki is a bit fuzzy, so my interpretation of the syntax might be off. This query does work (no results, when results are expected). (-s