Index aliases are there any impact on the cluster when updating it?

Hello,
For example, if I create an index alias, like in the example

POST /_aliases
{
    "actions" : [
        { "add" : { "index" : "test1", "alias" : "alias1" } }
    ]
}

but then i want to preserve the alias1 and swap it with "index": "test2", what is the correct way to do this?

do i have to remove the alias first from test1 index and then add it to test2 index?

You can do it in one operation by having two actions, one to add and one to delete.

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