Elasticsearch reindex tool可以很轻松的重新构建index,同样可以在clusters之前迁徙index。6.0以上的ES版本自带reindex功能

安装

  • 在plugin目录下建一个reindex的目录
  • 把reindex的包放进去
  • 重启ES

使用

  • copy数据
      curl -XPOST  "http://ip:9200/old_index/old_type/_reindex/new_index/new_type"
    
  • 查询copy情况
      curl -XPOST  "http://ip:9200/_reindex"
    
⤧  Next post elasticsearch type(type) ⤧  Previous post elasticsearch install(安装)