From schema.xml:
<field name="myfield" type="integer" indexed="true" stored="false"/>
The record with id 5 has myfield with value of 0, which I've confirmed by searching for plain id:5 and looking at the objectXml.
A search for id:5 AND myfield:0 returns no records.
A search for id:5 AND -myfield:1, however, returns the record I am expecting.
Why?
-- Additional info:
Definition for integer type:
<fieldType name="integer" class="solr.IntField" omitNorms="true"/>
Solr version: 1.4