mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 21:18:31 +00:00
0d6e622242
Instead of longs. If you want millis since epoch you can call doc.date_field.value.millis. Relates to #22875
15 lines
490 B
Plaintext
15 lines
490 B
Plaintext
[[breaking_60_scripting_changes]]
|
|
=== Scripting changes
|
|
|
|
==== Groovy language removed
|
|
|
|
The groovy scripting language was deprecated in elasticsearch 5.0 and is now 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.
|