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 <[email protected]> wrote: > On Fri, Feb 17, 2017 at 5:42 AM, Michael Peterson <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
