Hi Bill, No difference, it's just that Lucene's query syntax recognizes both 'NOT' and '-' and uses them the same way - to exclude certain documents from sesrch results.
Otis --- Bill Tschumy <[EMAIL PROTECTED]> wrote: > I don't understand the difference in using + and - in queries > compared > to using AND and NOT. Even the Query Syntax document seems a bit > confused. In the section on the NOT operator it says: > > > To search for documents that contain "jakarta apache" but not > "jakarta lucene" use the query: > > > > > > "jakarta apache" NOT "jakarta lucene" > > > > Then in the section on the - operator you read this: > > > To search for documents that contain "jakarta apache" but not > "jakarta lucene" use the query: > > > > > > "jakarta apache" -"jakarta lucene" > > > > So what's the difference? > > -- > Bill Tschumy > Otherwise -- Austin, TX > http://www.otherwise.com > > > --------------------------------------------------------------------- > 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]