lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: Using not operator in query
Date Thu, 25 Oct 2007 18:12:36 GMT

25 okt 2007 kl. 19.57 skrev Vs_Inf:
>  We have a requirement to allow users of our search application to  
> use "NOT"
> operator on a single term.
>
> Is there a work-around for this requirement?

You will need to combine the NOT-statement with a MatchAllDocsQuery.

<http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/search/ 
MatchAllDocsQuery.html>

-- 
karl

---------------------------------------------------------------------
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