take a look at this blog by Hossman: https://lucidworks.com/2011/12/28/why-not-and-or-and-not/
Lucene query logic is not strict Boolean logic, the article above explains why. Best, Erick On Thu, Feb 16, 2017 at 2:08 PM, Trejkaz <trej...@trypticon.org> wrote: > On Fri, Feb 17, 2017 at 5:42 AM, Michael Peterson <quu...@gmail.com> wrote: >> I have a question about the meaning and behavior of grouping behavior with >> Lucene queries. > > For this query: > > host:host_1 AND (NOT location:location_5) > > The right hand side is: > > NOT location:location_5 > > Which matches nothing, as it has no positive clauses. And, of course, > ANDing that with any other query results in matching nothing. > > TX > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org