Clone index without actually copying the data

I am looking for an easy way to create a new index with configuration identical to index X.
I know that there is a clone command, but I do not want to copy the data.
I also know that I can just get the settings and mappings and merge them somehow and create a new one.
But how hard will it be to add a flag to the clone command that will indicate something like “no_data_clone”?

Hi @gil.amsalem,

Have you considered using index templates: Index templates - OpenSearch Documentation


Thank you @Mantas.
I think that it can solve my problem :slight_smile:

1 Like