lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: negative queries
Date Fri, 15 Jun 2007 17:22:44 GMT
On Friday 15 June 2007 03:07, Antony Sequeira wrote:
> Hi
> I am aware that with Lucene I can not do negative only queries such as
>   -foo:bar
> 
> But today I ran into an issue where I realized even queries such as
>   +foo:bar +(-goobly:doo)
> also never return any results.

Could you try this:

  +foo:bar -goobly:doo

That should do what you want, as far as I can see.

Regards,
Paul Elschot



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