try
Field1:Val1 AND (*:* NOT Field2:Val2), that shoud work ok

On Sun, Nov 14, 2010 at 9:02 AM, Viswa S <svis...@hotmail.com> wrote:

>
> Dear Solr/Lucene gurus,
> I have run into a weird issue trying use a negative condition in my query.
> Parser:StandardQueryParserMy Query: Field1:Val1 NOT Field2:Val2Resolved as:
> Field1:Val1 -Field2:Val2
> The above query never returns any document, no matter how we use a
> paranthesis.
> I did see some suggestions on LuceneQParser to use something like:*:*
> Field1:Val1 -Field2:Val2
> This seems to return some documents, however it seems to ignore the first
> condition (Field1:Val1), Please help.
> ThanksVis

Reply via email to