mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -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
35970c512a
commit
58bf0637a2
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