gpt4 book ai didi

Elasticsearch document_missing_exception

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

我在看 document_missing_exception当将数据更新到 Elasticsearch(ES 版本 7.4)时。
根据异常名称,似乎是由于 Elasticsearch 中不存在请求的文档。虽然 upsert 脚本通过重试成功。
是真的吗document_missing_exception仅仅是因为 Elasticsearch 中不存在请求的文档吗?
欢迎提供有关 document_missing_exception 的任何信息。

最佳答案

是的,你没看错,就是document_missing_exception只是由于 ES 中不存在请求的文档,您可以轻松查看 ES 源代码以找到并查看,唯一调用它的地方来自 UpdateRequestthis方法注释解释得更好:
来自 ES 代码

  /**
* Sets the index request to be used if the document does not exists. Otherwise, a
* {@link org.elasticsearch.index.engine.DocumentMissingException} is thrown.
*/
public UpdateRequest upsert(IndexRequest upsertRequest) {
this.upsertRequest = upsertRequest;
return this;
}

关于Elasticsearch document_missing_exception,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63911734/

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