How to update the index along with aliases and documents while restoring from dump in elastic search?


(Abhishek) #1

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 .


(Mark Walkom) #2

Yep, you will need to change the alias with another operation after the restore.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.