0

我们在弹性 5.x 中按 _uid 排序,现在已弃用

我们升级了现有的 5.x 数据并且弹性 6.8.3 使用它很好

但排序失败

我们将代码更改为按 _id 排序,这适用于新创建的索引

但旧的似乎仍然与 5.x 兼容并且排序失败

"Fielddata access on the _id field is disallowed"
4

1 回答 1

1

我遇到过同样的问题。从 5.6 恢复到 6.8 集群的索引抛出错误。

"type": "script_exception",
"reason": "runtime error",
"Fielddata access on the _id field is disallowed"

为了解决这个问题,我创建了一个具有相同映射的新索引并重新索引了数据。

于 2021-02-03T13:40:19.690 回答