Re: Problem with NOT and OR Query

2009-06-16 Thread Erick Erickson
NOT isn't a boolean operator, which is a source of continuous confusion. See: http://lucene.apache.org/java/2_3_2/queryparsersyntax.html#NOT for a part of the explanation, and http://wiki.apache.org/lucene-java/BooleanQuerySyntax Best Erick On Tue, Jun 16, 2009 at 11:24 AM, Sumanta Bhowmik < sum

Problem with NOT and OR Query

2009-06-16 Thread Sumanta Bhowmik
Hi I found that a query "NOT num_pkts:1024 OR src_port:80" behaves the same as "NOT num_pkts:1024 AND src_port:80". The actual query is (start_utc:[1230748200 TO 1230768000] OR end_utc:[1230748200 TO 1230768000]) AND (num_pkts:1024 OR NOT num_bytes:40960) but it behaves as if it is (