作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在看 document_missing_exception
当将数据更新到 Elasticsearch(ES 版本 7.4)时。
根据异常名称,似乎是由于 Elasticsearch 中不存在请求的文档。虽然 upsert 脚本通过重试成功。
是真的吗document_missing_exception
仅仅是因为 Elasticsearch 中不存在请求的文档吗?
欢迎提供有关 document_missing_exception 的任何信息。
最佳答案
是的,你没看错,就是document_missing_exception
只是由于 ES 中不存在请求的文档,您可以轻松查看 ES 源代码以找到并查看,唯一调用它的地方来自 UpdateRequest
和 this方法注释解释得更好:
来自 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/
我在看 document_missing_exception当将数据更新到 Elasticsearch(ES 版本 7.4)时。 根据异常名称,似乎是由于 Elasticsearch 中不存在请求的文
我是一名优秀的程序员,十分优秀!