We have time-based data organized in monthly indices, and we try to optimize our non-current indices.
Due to performances issues we’re not able to just run optimize so we planned to reindex our data into new indices configured to a “refresh interval” of -1.
In this situation, after reindexing I’d expect the number of committed segments to be 1, but in our case we saw different numbers around ~15.
The documentation does mention that an optimize should be called, but is there a way to get our data organized in a one single segment in such case?
Plus, we expect a new segment to be created every "refresh_interval" time, so if the "refresh_interval" is set to -1, we expect only 1 segment to be created, can you please explain why that is not our end result?