HI , I need to modify and restore an index in elastic search alongwith the alias and documents inside it from the dump which is already present .
I have tried the below one :
POST /_snapshot/my_backup/snapshot_1/_restore
{
"indices": "index_1",
"rename_pattern": "index_(.+)",
"rename_replacement": "restored_index_happy" ,
"include_aliases":true
}
But it only updates the name of the index , keeping the alias and documents inside it as it is .
Thanks in advance .