我们在elastic 5.x中有sort by _uid,现在已经被弃用了
我们升级了现有的5.x数据,elastic 6.8.3正在使用它
但是排序失败了
我们将代码更改为按_id排序,这适用于新创建的索引
但旧的似乎仍然是5.x兼容的,排序失败
"Fielddata access on the _id field is disallowed"发布于 2021-02-03 21:40:20
我也有同样的问题。从5.6恢复到6.8群集的索引将抛出错误。
"type": "script_exception",
"reason": "runtime error",
"Fielddata access on the _id field is disallowed"为了解决这个问题,我用相同的映射创建了一个新的索引,并对数据进行了重新索引。
https://stackoverflow.com/questions/58565731
复制相似问题