In the docs it has this example (https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html#aliases-write-index)
POST /_aliases
{
"actions" : [
{
"add" : {
"index" : "test",
"alias" : "alias1",
"is_write_index" : true
}
}
]
}
and then says about the example
In this example, we associate the alias
alias1
to bothtest
andtest2
, wheretest
will be the index chosen for writing to.
Where does the test2
index come from?