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.

Rob



- <doc>
- <arr name="collectionName">
  <str>Learning about Cats</str>
  </arr>
- <arr name="collectionid">
  <int>3091</int>
  </arr>
  <int name="createdby">0</int>
  <date name="dtcreated">2008-06-12T12:00:00Z</date>
  <date name="dtupdated">2008-06-12T12:00:00Z</date>
- <arr name="editionsarray">
  <int>165414</int>
  <int>165415</int>
  <int>165417</int>
  <int>168198</int>
  <int>168199</int>
  <int>168200</int>
  </arr>
  <str name="id">136457</str>
  <bool name="isactive">false</bool>
  <bool name="islocked">false</bool>
  <str name="name" />
  <date name="timestamp">2010-04-27T02:15:03.14Z</date>
  <int name="typeid">16</int>
  <str name="typename">collection</str>
  <int name="updatedby">0</int>
  </doc>

Reply via email to