gpt4 book ai didi

tomcat - Solr sint 类型限制

转载 作者:行者123 更新时间:2023-11-28 21:48:48 25 4
gpt4 key购买 nike

我有这个架构:

<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>

当我尝试推送 id = 6661883440 的新文档时,出现此错误:

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"

sint类型字段有一些限制?有什么建议吗?

谢谢

最佳答案

int Solr 中的字段是一个可以包含 32 位有符号二进制补码整数值的数字字段

Min Value Allowed: -2147483648
Max Value Allowed: 2147483647

使用Long这是一个可以包含 64 位有符号二进制补码整数值的数字字段

Min Value Allowed: -9223372036854775808
Max Value Allowed: 9223372036854775807

关于tomcat - Solr sint 类型限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16689609/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com