Force merge elasticsearch


(Hanen) #1

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.


(David Pilato) #2

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


(Robert Cowart) #3

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.


(Hanen) #4

Thanks for your replay,

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


(Hanen) #5

Many thanks @rcowart!!


(system) #6

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