in this discuss Deleting old versions stands if you use the same ID for a doc: ... each time you index a doc with the same ID, the old version will be marked as deleted, and will no longer be visible.
we have now with the Kibana Version 7.9.0 the "issue" that the discover shows all versions (the actual and old). These 'deleted' doc will not be removed after more than 14 days, even if we do a _forcemerge.
How can we delete every old version inside one index? And is it possible to disable the old version shown in Kibana? In every request in discovery the version: true is set. And I have found no option to disable it.
@Christian_Dahlqvist: only 2 shards. I have never used a parent-child feature. The only thing is where this happens is I use the update API and do not a complete new index.
As it is explained in the article you are referring to, if documents are updated with the same '_id' value, a new document is created and the old one is internally flagged by lucene as deleted and never returned in search results. Future segment merge operations will definitivelly remove if.
If updates create new documents with dedicated _id value, _forcemerge won't make them disappear.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.