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 Tyler Smalley
parent 35970c512a
commit 58bf0637a2

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"
}
}
--------------------------------------------------