hi, all

a field schema as this:
<field name="pubdate" type="slong" indexed="true" stored="true"/>

when i indexed a doc with null value of this field, an error happened:

SEVERE: org.apache.solr.common.SolrException: Error while creating field
'pubdate{type=slong,properties=indexed,stored,omitNorms,sortMissingLast}'
from value ''

and slong type defined as below:
<fieldType name="slong" class="solr.SortableLongField"
sortMissingLast="true" omitNorms="true"/>

since it's permitted that this field is null when sorting, why not when
indexing?

thanks

---xuejian.li

Reply via email to