OpenSearch使用批量与相同的_id重新加载文档

发布于 2025-02-04 01:40:46 字数 188 浏览 1 评论 0原文

我计划使用bulk服务将文档加载到OpenSearch中,并且我正在自定义创建_id ,但是在某些情况下,作业失败或其他,我需要重做这项工作,这意味着对于某些文档,我需要加载两次。我可以使用_id避免重复吗?如果这可以帮助避免重复,则使用版本操作来保存两个版本,或者只是删除旧版本?

谢谢

I plan to use the bulk service to load the documents into opensearch, and i am custom create the _id, but in some case the job failed or whatever, i need to redo the job, so this means for some document i need to load twice. can i use the _id to avoid duplication? and if this could help avoid duplicate, is opensearch using versioning to save both version or just remove the old one?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文