Painless - the new default scripting language
With the release of Elasticsearch 5.0, we can use a new scripting language that has become the default: Painless. It is a simple and secure scripting language available in Elasticsearch by default and does not require any plugin to be installed. Painless is designed specifically for use with Elasticsearch and can safely be used with inline and stored scripting, without worrying about any security issues or configuration changes.
Using Painless as your scripting language
There is not much documentation available on the Painless scripting language yet but according to the Elasticsearch official documentation, Painless syntax is similar to Groovy. Although we will cover how to use Painless with some examples ...
Get Mastering Elasticsearch 5.x - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.