lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vs_Inf <vyalavar...@informatica.com>
Subject Using not operator in query
Date Thu, 25 Oct 2007 17:57:08 GMT

Hi,
 We have a requirement to allow users of our search application to use "NOT"
operator on a single term.
For example, if the user enters "not customer", they are expecting the
search to return everything that is not "customer".

How can i achive this given Lucene limitation on NOT operator which
according to Lucene documentation:
 
The NOT operator cannot be used with just one term. For example, the
following search will return no results:
NOT "jakarta apache"

Is there a work-around for this requirement?

Thanks for your help.
-Vasu
-- 
View this message in context: http://www.nabble.com/Using-not-operator-in-query-tf4692536.html#a13412435
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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