_forcemerge increase actual doc count, is any chance to duplicate


(Dilip Kumar) #1

green open myindex ehZT7XVTTRt-aQq5dDukignw 5 1 117766002 2793806 25.7gb 12.8gb

I have 2 nodes cluster with default shards(5)

I have deleted/updated document that taking extra size on disk, (Count : 2793806)

when i should use forcemerge API and what should max_num_segments

localhost:9200/myindex/_forcemerge?max_num_segments=1

what actually engine do , its increase some no actual count.

Is there any chance that after merge i will get duplicate doc


(Mark Walkom) #2

None.

It'd be useful if you showed the before and after output from _cat/indices.


(Dilip Kumar) #3

I have used force merged API then check i saw some doc count increase, how it is possible?