lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sascha Szott <sz...@zib.de>
Subject Re: problem with formulating a negative query
Date Tue, 29 Jun 2010 16:40:48 GMT
Hi Ahmet,

it works, thanks a lot!

To be true I have no idea what's the problem with
defType=lucene&q.op=OR&df=topic&q=R NOT [* TO *]

-Sascha

Ahmet Arslan wrote:
>> I have a (multi-valued) field topic in my index which does
>> not need to exist in every document. Now, I'm struggling
>> with formulating a query that returns all documents that
>> either have no topic field at all *or* whose topic field
>> value is R.
>
> Does this work?
> &defType=lucene&q.op=OR&q=topic:R (+*:* -topic:[* TO *])
>

Mime
View raw message