continue ideo-logic error in QueryParser and in BooleanQuery !

2001-12-17 Thread Serge A. Redchuk
.. Let we have 4 docs: doc1: Love is life doc2: Java is pretty nice language doc3: C++ is powerful, but unsafe doc4: Onion and love sometimes are not compatoble So, if search for love OR NOT onion Here I was wrong: (nevertheless it not solve described bug) result must be:

Re: continue ideo-logic error in QueryParser and in BooleanQuery !

2001-12-17 Thread Otis Gospodnetic
Actually, I do not think this is a bug. You cannot make searches with queries that have only the NOT part. You cannot ask Lucene to match all documents that do not contain a certain term. For instance, issuing a 'NOT pretty' will not return doc1, doc3, doc4. You have to use that NOT pretty in