i've this schema:
<fields>
<field name="id" type="sint" indexed="true" stored="true"/>
<field name="title" type="text" indexed="true" stored="true"/>
<field name="description" type="text" indexed="true" stored="true"/>
</field>
and when i try to push a new doc with id = 6661883440, i get this error:
SEVERE: org.apache.solr.common.SolrException: ERROR: [doc=6661883440] Error adding field 'id'='6661883440'
Caused by: org.apache.solr.common.SolrException: Error while creating field 'id{type=sint,properties=indexed,stored,omitNorms,sortMissingLast, required=true}' from value '6661883440'
Caused by: java.lang.NumberFormatException: For input string: "6661883440"
There are some limits on the sint type field? Any advices?
Thanks
The int field in Solr is A numeric field that can contain 32-bit signed two's complement integer values
.
Min Value Allowed: -2147483648
Max Value Allowed: 2147483647
Use Long which is A numeric field that can contain 64-bit signed two's complement integer values
.
Min Value Allowed: -9223372036854775808
Max Value Allowed: 9223372036854775807
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With