Could one index alias aggregate results from multiple index?


#1

Hello Elastic experts,

Could one index alias aggregate results from multiple index?

thanks in advance,
Lin


(Magnus B├Ąck) #2

Yes, an alias can point to more than one index.

https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html#alias-adding


#3

Thanks Magnus,

Is there a sample of how to create multiple index based alias? I see the samples are all based on one alias with one index? Please feel free to correct me if I am wrong.

regards,
Lin


(Colin Goodheart-Smithe) #4

Have a look at the fourth code block in this page of the documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html


#5

Cool, thanks Colin.

regards,
Lin


(system) #6