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: filtering by a required field
Date Wed, 05 May 2010 21:00:13 GMT

> Hi, I'm a long-time lurker,
> first-time poster. I have an issue with a
> search filter I need to resolve and I'm not sure how to
> handle it. I
> have documents like the one below that I am searching
> against. The
> field "editionsarray" is only present in the document if it
> has
> specific editions attached to it. I want to filter out
> documents where
> the editionsarray field is not present, or is not populated
> with any
> values (either way is fine). I am working with Solr 1.3 in
> a standard
> deployment with no patches.
> 
> Thanks in advance for any thoughts.

&fq=-editionsarray:[* TO *] should do the job.


      

Mime
View raw message