elasticsearch 排序异常,关键字冲突

org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[AiJ8JiX6SBGS-Tq0V5mrDA][tickets_v1][0]: QueryPhaseExecutionException[[tickets_v1][0]: query[filtered(*:*)->cache(_type:its_tickets)],from[0],size[20],sort[<custom:"update_time": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@606a5e5b>!]: Query Failed [Failed to execute main query]]; nested: ElasticsearchException[java.lang.ArrayIndexOutOfBoundsException]; nested: UncheckedExecutionException[java.lang.ArrayIndexOutOfBoundsException]; nested: ArrayIndexOutOfBoundsException; }{[AiJ8JiX6SBGS-Tq0V5mrDA][tickets_v1][1]: QueryPhaseExecutionException[[tickets_v1][1]: query[filtered(*:*)->cache(_type:its_tickets)],from[0],size[20],sort[<custom:"update_time": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@71015316>!]: Query Failed [Failed to execute main query]]; nested: ElasticsearchException[java.lang.ArrayIndexOutOfBoundsException]; nested: UncheckedExecutionException[java.lang.ArrayIndexOutOfBoundsException]; nested: ArrayIndexOutOfBoundsException; }{[AiJ8JiX6SBGS-Tq0V5mrDA][tickets_v1][2]: QueryPhaseExecutionException[[tickets_v1][2]: query[filtered(*:*)->cache(_type:its_tickets)],from[0],size[20],sort[<custom:"update_time": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@2ea14ed8>!]: Query Failed [Failed to execute main query]]; nested: ElasticsearchException[java.lang.ArrayIndexOutOfBoundsException]; nested: UncheckedExecutionException[java.lang.ArrayIndexOutOfBoundsException]; nested: ArrayIndexOutOfBoundsException; }{[AiJ8JiX6SBGS-Tq0V5mrDA][tickets_v1][3]: QueryPhaseExecutionException[[tickets_v1][3]: query[filtered(*:*)->cache(_type:its_tickets)],from[0],size[20],sort[<custom:"update_time": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@586642f4>!]: Query Failed [Failed to execute main query]]; nested: ElasticsearchException[java.lang.ArrayIndexOutOfBoundsException]; nested: UncheckedExecutionException[java.lang.ArrayIndexOutOfBoundsException]; nested: ArrayIndexOutOfBoundsException; }{[AiJ8JiX6SBGS-Tq0V5mrDA][tickets_v1][4]: QueryPhaseExecutionException[[tickets_v1][4]: query[filtered(*:*)->cache(_type:its_tickets)],from[0],size[20],sort[<custom:"update_time": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@26b1a384>!]: Query Failed [Failed to execute main query]]; nested: ElasticsearchException[java.lang.ArrayIndexOutOfBoundsException]; nested: UncheckedExecutionException[java.lang.ArrayIndexOutOfBoundsException]; nested: ArrayIndexOutOfBoundsException; }
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:237)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$1.onFailure(TransportSearchTypeAction.java:183)
at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:565)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

解决办法:
将表中update_time关键字段的名称, 改为非关键字的即可,例如updt_time
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值