Something like:
curl -XPUT 'http://xxxxxx:9200/_snapshot/20151106/snapshot_3' -d '{
"indices": "metrics-*",
"query": "env=pro",
"ignore_unavailable": "true",
"include_global_state": false
}'
Something like:
curl -XPUT 'http://xxxxxx:9200/_snapshot/20151106/snapshot_3' -d '{
"indices": "metrics-*",
"query": "env=pro",
"ignore_unavailable": "true",
"include_global_state": false
}'
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.
Ok! thank you!
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.