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

**URL:** https://discuss.elastic.co/t/index-aliases-are-there-any-impact-on-the-cluster-when-updating-it/225395
**Category:** Elasticsearch
**Created:** [March 27, 2020, 11:43am UTC](https://discuss.elastic.co/t/index-aliases-are-there-any-impact-on-the-cluster-when-updating-it/225395 "2020-03-27T11:43:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Norman\_Khine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norman_khine/32/3342_2.png) [@Norman\_Khine](https://discuss.elastic.co/u/Norman_Khine)
#### Post date: [March 27, 2020, 11:43am UTC](https://discuss.elastic.co/t/index-aliases-are-there-any-impact-on-the-cluster-when-updating-it/225395/1 "2020-03-27T11:43:29Z")

</div>

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

```auto
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?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [March 29, 2020, 1:56pm UTC](https://discuss.elastic.co/t/index-aliases-are-there-any-impact-on-the-cluster-when-updating-it/225395/2 "2020-03-29T13:56:33Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 26, 2020, 1:56pm UTC](https://discuss.elastic.co/t/index-aliases-are-there-any-impact-on-the-cluster-when-updating-it/225395/3 "2020-04-26T13:56:40Z")

</div>

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