Elasticsearch reindex

2020-10-24  本文已影响0人  disilin

upgrade reindex

POST /_reindex

{

  "source": {

    "remote": {

      "host": "http://127.0.0.1:9201"

    },

    "index": "template*"

  },

  "dest": {

    "index": "template"

  },

  "script": {

    "lang": "painless",

    "source": "ctx._index = 'template' + (ctx._index.substring('template'.length(), ctx._index.length())) + ''"

  }

}

上一篇 下一篇

猜你喜欢

热点阅读