lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Carlson <>
Subject Can NOT be used with a single Term?
Date Thu, 16 May 2002 15:22:57 GMT
According the Jguru FAQ

Is it possible to find all documents in the index that do not contain a
certain term? In other words, is it possible to make a query such as 'NOT

No, it is not possible to do that with Lucene. Lucene could be modified to
do that, but such queries would be very slow.


On 5/16/02 7:41 AM, "Eugene Gluzberg" <> wrote:

> Wait a sec,
> NOT can be used with only one term.
> NOT "bye bye"
> is a legal query
> so is:
> -"bye bye"
> Either will find all documents which do not contain the phrase "bye bye"
> I will write a test.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message