lucene-java-user mailing list archives

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

 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.
View this message in context:
Sent from the Lucene - Java Users mailing list archive at

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

View raw message