> -Original Message-
> From: Nabib El-Rahman [mailto:nabi...@gmail.com]
> Sent: Wednesday, November 24, 2010 2:05 AM
> To: java-user@lucene.apache.org
> Subject: Not query help.
>
> Hi,
>
> What I need is a Not TermQuery. I did not see one in the API, so I did the
> fol
I've had to deal with exactly this same scenario and, from what I know,
there is no equivalent in Lucene to a SQL != kind of query. So, you have to
have some way to select "everything" (whatever that means in your scenario)
and then remove the stuff that you don't want (the NOT portion). For my
app
Hi,
What I need is a Not TermQuery. I did not see one in the API, so I did the
following:
Query query = new BooleanQuery(new BooleanClause(new
TermQuery(..), BooleanClause.Occur.MUST_NOT)));
This did not produce the correct search result. Does anyone have any idea on
how to accomplish this?
And