I send the following request to ES:
PUT /_alias
{
"actions": [
{
"remove": {
"index": "iso27001-controls-followup-1678369933360",
"alias": "iso27001-controls-followup-current"
}
},
{
"remove": {
"index": "iso27001-controls-followup-1678452135114",
"alias": "iso27001-controls-followup-current"
}
},
{
"add": {
"index": "iso27001-controls-followup-1678455704228",
"alias": "iso27001-controls-followup-current"
}
}
]
}
The aliases mentioned do exist and I expected all of the aliases to first be removed, and then a new one added. What I get instead is
GET /_cat/aliases/iso27001-controls-followup-current?format=json
[
{
"alias": "iso27001-controls-followup-current",
"index": "iso27001-controls-followup-1678452135114",
"filter": "-",
"routing.index": "-",
"routing.search": "-",
"is_write_index": "-"
},
{
"alias": "iso27001-controls-followup-current",
"index": "iso27001-controls-followup-1678455704228",
"filter": "-",
"routing.index": "-",
"routing.search": "-",
"is_write_index": "-"
},
{
"alias": "iso27001-controls-followup-current",
"index": "iso27001-controls-followup-1678369933360",
"filter": "-",
"routing.index": "-",
"routing.search": "-",
"is_write_index": "-"
}
]
A new alias was created correctly but the remove
requests were not processed. Why?