mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 09:29:11 +00:00
Settings are simplified to allowed_types and allowed_contexts. If a setting is not specified the default is to enable all for that setting.
19 lines
728 B
Plaintext
19 lines
728 B
Plaintext
[[breaking_60_scripting_changes]]
|
|
=== Scripting changes
|
|
|
|
==== Groovy, JavaScript, and Python languages removed
|
|
|
|
The Groovy, JavaScript, and Python scripting languages were deprecated in
|
|
elasticsearch 5.0 and have now been removed. Use painless instead.
|
|
|
|
==== Date fields now return dates
|
|
|
|
`doc.some_date_field.value` now returns ++ReadableDateTime++s instead of
|
|
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.
|
|
|
|
==== Script Settings
|
|
|
|
All of the existing scripting security settings have been deprecated. Instead
|
|
they are replaced with `script.allowed_types` and `script.allowed_contexts`. |