In Elasticsearch v7.12.0 I have several indices named as payload.YYYY-MM
.
With YYYY
= year and MM
= month.
In order to reduce the amount of indices, I would like to merge all the indices that are from the same year in a new indice named payload.YYYY
How can I do it using the Elasticsearch API ?
(I don't want to use the aliases as it doesn't reduce the amount of indices)