mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
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:
parent
e11c7bb7db
commit
4ae2610765
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
--------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue