Lucene excluding 'not' from search terms

2008-08-04 Thread SoupErman
As in the subject title, it seems the word 'not' is being excluded from my searches. Note the lowercase, it isn't being treated as the boolean operator 'NOT'. For example, given the query "sticks not stones", it parses it as "+keywords:stick +keywords:stone". Whereas if I use the query "sticks NOT

Re: Lucene excluding 'not' from search terms

2008-08-04 Thread Kalani Ruwanpathirana
Hi, I guess it is with your analyzer. What is the analyzer you are using? If it is StandardAnalyzer it drops words like "a", "the", etc. You can use the SimpleAnalyzer and check. (I am not very sure because I am also new to Lucene :) On Tue, Aug 5, 2008 at 10:04 AM, SoupErman <[EMAIL PROTECTE