lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Can NOT be used with a single Term?
Date Thu, 16 May 2002 15:54:36 GMT
I just tried:
 -foo
 NOT foo

Neither worked.

Otis

--- Peter Carlson <carlson@bookandhammer.com> wrote:
> 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
> <term>'? 
> 
> 
> No, it is not possible to do that with Lucene. Lucene could be
> modified to
> do that, but such queries would be very slow.
> c.f. http://marc.theaimsgroup.com/?t=100455365600001&r=1&w=2
> 
> 
> --Peter
> 
> On 5/16/02 7:41 AM, "Eugene Gluzberg" <drag0n2@apache.org> 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:  
> <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:lucene-dev-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message