Alias of alias

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 ?

What are you trying to achieve with this?

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.

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}

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.

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