Why can't I find the "0" field in Solr?
From schema.xml:
<field name="myfield" type="integer" indexed="true" stored="false"/>
The record with identifier 5 has myfielda value of 0, which I confirmed by doing a plain search id:5and looking at objectXml.
Search id:5 AND myfield:0does not return records.
The search id:5 AND -myfield:1, however, returns the expected record.
Why?
- Additional Information:
Definition for integer type:
<fieldType name="integer" class="solr.IntField" omitNorms="true"/>
Solr Version: 1.4
+3