lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <...@teamware.com>
Subject NOT queries
Date Tue, 21 Nov 2006 22:14:06 GMT
Hi,

I'm writing a mapping mechanism between an existing search interface and Lucene 
and wondered how to support a single NOT/- query.

Given the query "-attribute", then from an ealier comment by Chris Hostetter 
where he says "you can't have a negative clause in isolation by itself", I 
assume that you first have to create a BooleanClause that finds everything and 
then another Clause that removes the "attribute".

Is this right or is there another way to do it?

Thanks
Antony



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message