In the docs it has this example (Aliases API | Elasticsearch Guide [8.11] | Elastic)
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?