ES排序操作错误:NotSerializableExceptionWrapper[: Fielddata is disabled on text fields by default.

一、报错信息

2021-08-13 15:38:42.838 [http-nio-10019-exec-8] INFO  cn.xxx.user.utils.ElasticsearchUtil - 
{
   
   "size":1,"query":{
   
   "bool":{
   
   "must":[{
   
   "term":{
   
   "uid":{
   
   "value":12074,"boost":1.0}}},{
   
   "term":{
   
   "bizId":{
   
   "value":"10001628838759551490","boost":1.0}}},{
   
   "term":{
   
   "bizCode":{
   
   "value":"POINTS_DRAW","boost":1.0}}},{
   
   "term":{
   
   "recordType":{
   
   "value":1,"boost":1.0}}}],"adjust_pure_negative":true,"boost":1.0}},"_source":{
   
   "includes":["partnerCode","recordType","bizCode","bizId","uid","state","operName","value","createTime","updateTime"],"excludes":[]},"sort":[{
   
   "createTime":{
   
   "order":"desc"}}]}
2021-08-13 15:38:42.851 [http-nio-10019-exec-8] ERROR cn.xxx.user.service.impl.PointsServiceImpl - ES查询经验值记录异常Failed to execute phase [query], all shards failed; shardFailures {
   
   [YZa-jRBiTTueCP_MeO1L_g][op_points_exp_record][0]: RemoteTransportException[[elsearch-test-10.10.120.15][10.10.120.15:9333][indices:data/read/search[phase/query]]]; nested: IllegalArgumentException[Fielddata is disabled on text fields by default. Set fielddata=true on [createTime] in order to load fielddata in memory by uninverting the inverted index. Note that 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值