Uses inline script for re-index (#14982)

While still working in 6.0, this has improved backwards compatibility with ES 5.x.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2017-12-01 12:59:09 -08:00 committed by GitHub
parent e11c7bb7db
commit 4ae2610765
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -313,7 +313,8 @@ POST _reindex
"index": ".kibana-6"
},
"script": {
"source": "ctx._source = [ ctx._type : ctx._source ]; ctx._source.type = ctx._type; ctx._id = ctx._type + \":\" + ctx._id; ctx._type = \"doc\"; "
"inline": "ctx._source = [ ctx._type : ctx._source ]; ctx._source.type = ctx._type; ctx._id = ctx._type + \":\" + ctx._id; ctx._type = \"doc\"; ",
"lang": "painless"
}
}
--------------------------------------------------