Closed
Description
Painless has improved considerably in the past 6 months, both in performance and feature parity with groovy. The performance is as much as 4x better than groovy for the same script. There have also been numerous changes in #17992 to allow existing groovy scripts to work out of the box.
Groovy is on its way out. We should change the default scripting language to painless for 5.0, so that we can at least move groovy to a plugin for 5.0 or 6.0. Users would still be able to change back, just as they could with mvel when we made the switch to groovy.
I've marked this issue as breaking, but I expect the vast majority of groovy scripts to just work in painless.