Vaccum Deleted Documents

I learned that Elasticsearch does not update a document, but instead, deletes the current document and creates a new one with the updates.

It happens that I have several documents that are updated several times during the day, and because of that it ends up generating several deleted documents.

Is it possible to delete these deleted documents and gain disk space?

My Elasticsearch version is 8.8

It's done automatically when merge is happening.
If you really need to do it manually, you can call the force merge API.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.