Solr 中遇到的问题

1、问题1 :whose UTF8 encoding is longer than the max length 32766

Error from server at http://localhost:8983/solr/newcore: Exception writing document id 995 

to the index; possible analysis error: Document contains at least one immense term in 

field="answerStr" (whose UTF8 encoding is longer than the max length 32766), all of which 
were skipped.  Please correct the analyzer to not produce such terms.  The prefix of the 
first immense term is: '[65, 32, 66, 32, 67, 32, 65, 32, 66, 32, 67, 32, -30, -120, -102, 
32, 65, 32, 66, 32, 66, 32, 67, 32, -30, -120, -102, 32, 65, 32]...', original message: 
bytes can be at most 32766 in length; got 33098. Perhaps the document has an indexed string 
field (solr.StrField) which is too large

解决方式:有些数据的超过了该字段的最大长度,会报这个错

在solr中schema-->查询 错误中提示的 字段 类型  显示如下。

修改配置文件中改字段的配置,将大字段 设置去掉索引,重启solr

<field name="answerStr" type="string" indexed="false" stored="true"/>

再次查询该字段信息 

此时可以向此字段添加数据

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

古月_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值