来自阅读this article (Lucene's Handling of Deleted Documents) ,据我所知,Elasticsearch 中已删除的文档只是简单地标记为已删除,这样它们之后可能会在磁盘上保留一段时间。
因此我想知道是否有办法在 Elasticsearch 中恢复已删除的文档?
最佳答案
已删除的文档和旧的文档版本被段合并过程完全删除:(
This is the moment when those old deleted documents are purged from the filesystem. Deleted documents (or old versions of updated documents) are not copied over to the new bigger segment.
https://www.elastic.co/guide/en/elasticsearch/guide/current/merge-process.html
关于elasticsearch - 是否可以取消删除 Elasticsearch 中的文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39238544/