如果弹性搜索快照包含多个索引(例如:wikipedia,ehow,howStaffWorks),我们可以只将这些索引中的一个加载到elasticsearch服务器中,还是在加载快照时必须加载所有索引?Elasticsearch快照
1
A
回答
4
在elasticsearch网站的documentation显示从快照中恢复具体指标:
curl -XPOST "localhost:9200/_snapshot/my_backup/snapshot_1/_restore" -d '{
"indices": "index_1,index_2",
"ignore_unavailable": "true",
"include_global_state": false,
"rename_pattern": "index_(.+)",
"rename_replacement": "restored_index_$1"
}'
见indices
以上。
0
是的,你可以。无需加载所有索引。
curl -XPOST "localhost:9200/_snapshot/my_backup/snapshot_1/_restore" -d '{
"indices": "index_1",
"ignore_unavailable": "true",
"include_global_state": false,
"rename_pattern": "index_(.+)",
"rename_replacement": "restored_index_$1"
}'
对于加载所有索引您可以使用下面的代码,(感觉插件)
PUT /_snapshot/my_backup/snapshot_1?wait_for_completion=true
0
是的,我们可以加载。
$ curl -XPUT 'http://localhost:9200/twitter/' -d '
"index" : {
"number_of_shards" : 3,
"number_of_replicas" : 2
相关问题
- 1. elasticsearch快照VS elasticdump
- 2. ElasticSearch快照独立于ElasticSearch版本
- 3. Elasticsearch获取快照大小
- 4. Elasticsearch删除多个快照
- 5. ElasticSearch增量快照不明确
- 6. 无法为ElasticSearch快照创建回购
- 7. elasticsearch不兼容快照目的
- 8. 快照elasticsearch使用馆长失败的
- 9. 为Aforge快照机快照分辨率
- 10. 拍摄快照视频的快照
- 11. 快照保存在缓存/快照
- 12. Maven的快照VS BUILD-快照
- 13. 如何在elasticsearch中重命名快照库?
- 14. 我可以将快照导入Elasticsearch中的新索引吗?
- 15. 如何在快照中查找Elasticsearch索引?
- 16. 如何在Node js中使用ElasticSearch快照?
- 17. Elasticsearch中的特定索引上的快照在Node.js上失败
- 18. Elasticsearch快照因存储库异常而失败
- 19. Google StreetView快照
- 20. AVSampleBufferDisplayLayer的快照
- 21. HyperV快照
- 22. 快照的Xamarin.Forms.View
- 23. Xcode快照
- 24. 动画快照
- 25. MongoDB快照
- 26. AWS快照AMI
- 27. HTML快照
- 28. EC2 AMI快照
- 29. 如何加快UIView快照?
- 30. AWS Lambda:RDS快照 - KeyError