: I have an 'integer' static field in my schema. Some the index for this field
: is corrupted. When I search on this field it works. When I use this field to
: sort against, I get this exception. Does this mean that there is a string in
: one of my entries? It is possible the field was not required or defaulted at
: some point and there are empty indexed fields for some records.

i believe this means that at some point, someone indexed the empty string 
"" in your index, ie: assuming you use the XmlUpdateRequestHandler, 
then one of these was indexed......

      <field name="yourFieldName"></field>
 or:  <field name="yourFieldName"/>

..if a document was indexed without ever refering to yourFieldName you 
shouldn't see this.)

I believe (but i'm not positive) this relates to this issue...

        http://issues.apache.org/jira/browse/SOLR-424

...i think the root cause in both cases is that the "integer" type doesn't 
reject a value of "" even tough it is not a valid integer (so it causes 
problems like this later)


-Hoss

Reply via email to