elasticsearch 提示Parse Failure [No mapping found for [filed] in order to sort on]] 的解决办法

排序代码如下:
{ "sort": [ { "timestamp": { "order": "desc" } } ] }
修改后:
{ "sort": [ { "timestamp": { "order": "desc", "ignore_unmapped": true } } ] }

elasticsearch 提示Parse Failure [No mapping found for [filed] in order to sort on]] 的解决办法

https://jingzhouzhao.github.io/archives/2a3d9fc7.html

作者

太阳当空赵先生

发布于

2017-04-06

更新于

2022-02-22

许可协议

评论