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())) + ''"
}
}
网友评论