After expunge command still docs.deleted is not reducing

HI Team,

In one of our index we are going to remove the docs.deleted documents,but after the execution still the docs.deleted is not reducing

health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open 193 uD67TWj2Sf2obEKw 5 1 44584203 2284288 578.9gb 288.8gb

curl -s -u 'en:pwd' -XPOST "http://ip:port/193/_forcemerge?only_expunge_deletes=true&pretty"

After execution of above commands the docs.deleted is not reducing ,

Please suggest on this.

It looks like you overall have about 5% deleted documents in your index. According to the docs expunging deletes only considers segments with over 10% (default) deleted documents.

Given that a forcemerge can be expensive, why are you looking to expunge these? Is the index no longer being updated?

we need the free disk space for the shard,

we are using the index regularly

Why do you need to do this? It seems a relatively small portion of the documents are deleted. Forcemerging will increase disk usage before any is released. Do you have enough space to handle this?

I am not sure forcemerging this way is the best way. Have you followed the guidelines in the docs?

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