2016-11-22 19:24:12 -08:00
|
|
|
[[breaking_60_scripting_changes]]
|
|
|
|
=== Scripting changes
|
|
|
|
|
2017-05-05 11:52:57 +02:00
|
|
|
==== Groovy, JavaScript, and Python languages removed
|
2016-11-22 19:24:12 -08:00
|
|
|
|
2017-05-05 11:52:57 +02:00
|
|
|
The Groovy, JavaScript, and Python scripting languages were deprecated in
|
|
|
|
elasticsearch 5.0 and have now been removed. Use painless instead.
|
2017-02-06 16:44:56 -05:00
|
|
|
|
2017-05-17 14:49:24 -07:00
|
|
|
==== Native scripts removed
|
|
|
|
|
|
|
|
Native scripts have been removed. Instead,
|
|
|
|
<<modules-scripting-engine, implement a `ScriptEngine`>>.
|
|
|
|
|
2017-02-06 16:44:56 -05:00
|
|
|
==== Date fields now return dates
|
|
|
|
|
2017-03-16 19:37:38 -07:00
|
|
|
`doc.some_date_field.value` now returns ++ReadableDateTime++s instead of
|
2017-02-06 16:44:56 -05:00
|
|
|
milliseconds since epoch as a `long`. The same is true for
|
|
|
|
`doc.some_date_field[some_number]`. Use `doc.some_date_field.value.millis` to
|
|
|
|
fetch the milliseconds since epoch if you need it.
|
2017-05-15 13:37:46 -07:00
|
|
|
|
2017-05-16 09:10:09 -07:00
|
|
|
==== Removed access to index internal via the _index variable
|
|
|
|
|
|
|
|
The `_index` variable has been removed. If you used it for advanced scoring, consider writing a `Similarity` plugin.
|
|
|
|
|
2017-05-15 13:37:46 -07:00
|
|
|
==== Script Settings
|
|
|
|
|
2017-05-18 13:32:46 -07:00
|
|
|
All of the existing scripting security settings have been removed. Instead
|
2017-05-16 09:10:09 -07:00
|
|
|
they are replaced with `script.allowed_types` and `script.allowed_contexts`.
|