Elasticsearch 抛出 resource_already_exists_exception

Nar*_*ngh 3 amazon-web-services node.js elasticsearch elasticsearch-5

我正在映射索引rides_order_266。弹性抛出异常resource_already_exists_exception。阅读异常消息后。看起来索引rides_order_266已经存在,但如果是这种情况,那么弹性搜索会抛出异常index_already_exists_exception。我很困惑我是对还是错。有人可以解释一下异常消息吗?

弹性搜索版本:6.4.2

[resource_already_exists_exception] index [rides_order_266/aGTcXrUrTAOV12qxEHl9tQ] already exists, with { index_uuid=\"aGTcXrUrTAOV12qxEHl9tQ\" & index=\"rides_order_266\" }","path":"/rides_order_266","query":{},"body":"{\"settings\":{\"index\":{\"mapping.total_fields.limit\":70000,\"number_of_shards\":1,\"number_of_replicas\":0,\"refresh_interval\":\"1s\"}}
Run Code Online (Sandbox Code Playgroud)

Val*_*Val 5

resource_already_exists_exception是此错误的新名称。它曾经是并且已经在版本 6.0 中重命名,如PR #21494index_already_exists_exception中所示。

进行这一更改是为了防止每种不同的资源类型(索引、别名等)出现不同的异常。

因此,鉴于索引已经存在,您得到的结果是完全可以的rides_order_266