lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: problem with formulating a negative query
Date Tue, 29 Jun 2010 15:08:21 GMT
> 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