PUT /new_index
{
"settings" : {
"index" : {
"number_of_shards" : 5,
"number_of_replicas" : 1
}
}
}
PUT /_snapshot/my_backup/snapshot_1?wait_for_completion=true
POST /_snapshot/my_backup/snapshot_1/_restore
{
"indices": "old_index",
"ignore_unavailable": true,
"include_global_state": false
}
GET /new_index/_search
注意事项: