Painless is a simple, secure scripting language designed specifically for use with Elasticsearch. It is the default scripting language for Elasticsearch and can safely be used for inline and stored scripts. For a detailed description of the Painless syntax and language features, see the Painless Language Specification.
You can use Painless anywhere scripts can be used in Elasticsearch. Painless provides:
def
type.
Ready to start scripting with Painless? See Getting Started with Painless in the guide to the Painless Scripting Language.