Force merge elasticsearch

Hi everyone,

I have a cluster with 6 nodes elasticsearch( 1 master node and 5 data nodes) and I have a very important number of documents.

I would like to reduce this number using Force Merge.

please how can I do it.

many thanks.

You can not reduce the number of documents by running a force merge.

Where forcemerge can help is if you have deleted documents that are no longer required and you want to reclaim that disk space. If this is what you are looking for, you must first delete the data that you no longer need (_delete_by_query can be useful for this) and then do a _forcemerge on the index.

Thanks for your replay,

could you please mention which configurations we should go through to realize that?
Thanks in advance!

Many thanks @rcowart!!

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