Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solr sint type limit

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

like image 516
Nothing Avatar asked Feb 16 '23 11:02

Nothing


1 Answers

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
like image 64
Jayendra Avatar answered Feb 27 '23 01:02

Jayendra