Is there any way to rename an index without the need of copying data to another index ?
You can use an alias to do that and point to the old index with it, but to change the original index will require a reindex.
POST _aliases
{
"actions": [
{
"add": {
"index": "my-old-name",
"alias": "my-new-name"
}
}
]
}
does reindexing means we have to copy data to a new index?
Yeah, exactly
1 Like
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.