Instead of longs. If you want millis since epoch you can call doc.date_field.value.millis. Relates to #22875
* Scripting: Remove groovy scripting language Groovy was deprecated in 5.0. This change removes it, along with the legacy default language infrastructure in scripting.