# Alias of alias

**URL:** <https://discuss.elastic.co/t/alias-of-alias/184955>\
**Category:** Elasticsearch\
**Created:** [June 10, 2019, 9:20am UTC](https://discuss.elastic.co/t/alias-of-alias/184955 "2019-06-10T09:20:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [June 10, 2019, 9:20am UTC](https://discuss.elastic.co/t/alias-of-alias/184955/1 "2019-06-10T09:20:55Z")

</div>

I was keen to know if we have Alias of Alias.

I have read in very old posts that it has not been implemented but the posts are from 2014.

Any clue anybody ?

---

<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:** [June 10, 2019, 9:29am UTC](https://discuss.elastic.co/t/alias-of-alias/184955/2 "2019-06-10T09:29:44Z")

</div>

What are you trying to achieve with this?

---

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [June 10, 2019, 11:46am UTC](https://discuss.elastic.co/t/alias-of-alias/184955/3 "2019-06-10T11:46:14Z")

</div>

I want to have below proposed structure:

> index\_tyres\_v1  
> |  
> alias\_BMW  
> |  
> alias\_Car

> index\_seats\_v1  
> |  
> alias\_BMW  
> |  
> alias\_Car

Whenever my new versions of tyres and seats are indexed as index\_tyres\_v2 and index\_seats\_v2.  
I want to remove v1 from the alias\_BMW and add v2. We call this swapping and then we delete v1 indexes.  
I have many such car makes like BMW and same hierarchy.

_The only thing i am trying to achieve is i dont want to alter my alias\_Car everytime._  
_I want to write queries using my aliases viz. alias\_Car and alias\_BMW._

---

<div class="post-metadata">

**Author:** ![roshni](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@roshni](https://discuss.elastic.co/u/roshni)\
**Post date:** [June 11, 2019, 10:07am UTC](https://discuss.elastic.co/t/alias-of-alias/184955/4 "2019-06-11T10:07:50Z")

</div>

No , this provision for aliasing an alias is not present in ES (6.4.1).  
Error received -

`> {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"The provided expression [alias1] matches an alias, specify the corresponding concrete indices instead."}],"type":"illegal_argument_exception","reason":"The provided expression [alias1] matches an alias, specify the corresponding concrete indices instead."},"status":400}`

---

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [June 11, 2019, 10:31am UTC](https://discuss.elastic.co/t/alias-of-alias/184955/5 "2019-06-11T10:31:32Z")

</div>

Thanks for the reply.

I too encountered the same error hence was trying to find if there was some workaround to get this done or a like solution.

---

<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:** [July 9, 2019, 10:31am UTC](https://discuss.elastic.co/t/alias-of-alias/184955/6 "2019-07-09T10:31:34Z")

</div>

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