Can I delete the source index that's been split into a new one?

Hello everyone! I have an index which has been split into a target index with more shards. Can I delete the source index now? Will there be any problems? I'd appreciate if anyone could explain this to me. Thanks in advance!

Hi @rojin,

the normal way to handle this is to have an alias pointing to the index. Once the split has completed, you can update the alias to point to the the new index. Afterwards, it is safe to delete the original index (though long running queries may fail then).

However, this does require that all indexing and search happen through that alias and not directly against the index.

2 Likes

Thank you for the explanation!

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