④. 将bank中的数据迁移到newbank中
POST _reindex { "source": { "index": "bank", "type": "account" }, "dest": { "index": "newbank" } } 运行输出: #! Deprecation: [types removal] Specifying types in reindex requests is deprecated. { "took" : 768, "timed_out" : false, "total" : 1000, "updated" : 0, "created" : 1000, "deleted" : 0, "batches" : 1, "version_conflicts" : 0, "noops" : 0, "retries" : { "bulk" : 0, "search" : 0 }, "throttled_millis" : 0, "requests_per_second" : -1.0, "throttled_until_millis" : 0, "failures" : [ ] }
⑤. 查看newbank中的数据
GET /newbank/_search 输出 "hits" : { "total" : { "value" : 1000, "relation" : "eq" }, "max_score" : 1.0, "hits" : [ { "_index" : "newbank", "_type" : "_doc", # 没有了类型