Solr type constraint

I have this circuit:

<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 click on a new document with id = 6661883440, I get this error:

SEVERE: org.apache.solr.common.SolrException: ERROR: [doc = 6661883440] Field with error added 'id' = '6661883440'

Called: org.apache.solr.common.SolrException: an error occurred while creating the field 'id {type = sint, properties = indexed, stored, omitNorms, sortMissingLast, required = true}' from the value '6661883440'

Called: java.lang.NumberFormatException: for input line: "6661883440"

Are there any restrictions in the synth type field? Any tips?

thanks

+4
source share
1 answer

The int field in Solr is A numeric field that can contain 32-bit signed two 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 complement integer values .

 Min Value Allowed: -9223372036854775808 Max Value Allowed: 9223372036854775807 
+8
source

Source: https://habr.com/ru/post/1482134/


All Articles