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: advanced search
Date Fri, 13 Oct 2006 12:42:54 GMT

13 okt 2006 kl. 09.59 skrev tony yin:

> I wanta search several fields use NOT condition, but how?
> for example:
> I store "test" in {"id", "name", "value", ...} fields.
> now I search "test" NOT in "id". That's it.
>
> Can anyone help me?

You will not get any matchs looking for just a boolean NOT-clause. It  
has to be combined with something that matches. Perhaps a  
MatchAllDocumentsQuery will do it for you.

But to answer your question: a not-query is a Clause of a BooleanQuery.


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