gpt4 book ai didi

node.js - Elasticsearch抛出resource_already_exists_exception

转载 作者:行者123 更新时间:2023-12-03 01:12:14 33 4
gpt4 key购买 nike

我正在映射索引 rides_order_266
flex 抛出异常 resource_already_exists_exception 。阅读异常消息后。看起来索引 rides_order_266 已经存在,但是如果是这种情况,那么 flex 搜索抛出异常 index_already_exists_exception 。我对自己是对还是错感到困惑。有人可以解释异常消息吗?
Elasticsearch版本: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\"}}

最佳答案

resource_already_exists_exception是此错误的新名称。如PR #21494所示,它以前是index_already_exists_exception,并已在6.0版中重命名。
进行此更改是为了防止每种不同的资源类型(索引,别名等)具有一个不同的异常。
因此,鉴于rides_order_266索引已经存在,您所得到的完全可以。

关于node.js - Elasticsearch抛出resource_already_exists_exception,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63900287/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com