elasticsearch 索引复制(含数据)

确保elasticsearch version 2.x

苦逼的等了几年

POST http://localhost:9200/_reindex
{
  "source": {
    "index": "index_test_001"
  },
  "dest": {
    "index": "new_index_test_001",
    "op_type": "create"
  }
}

详细参考: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html

谢谢

posted @ 2016-07-13 15:44  游子善心  阅读(12)  评论(0编辑  收藏  举报  来源