On Backup and Restore can I filter terms on Index?


(Tearsakura) #1

Something like:

curl -XPUT 'http://xxxxxx:9200/_snapshot/20151106/snapshot_3' -d '{
"indices": "metrics-*",
"query": "env=pro",
"ignore_unavailable": "true",
"include_global_state": false
}'


(Magnus B├Ąck) #2

No, this isn't possible with the snapshot/restore APIs. You'd have to restore the whole index to a temporary index and copy the desired documents to the final index.


(Tearsakura) #3

Ok! thank you!


(system) #4