🏡 Home 👈 Prev 👉 Next

⚡  ElasticsearchBook is crafted by Jozef Sorocin (🟢 Book a consulting hour) and powered by:

Scripting enables you to evaluate custom expressions.

As explored in 2. Insertion & Ingestion, we can modify fields.

And as mentioned in Points Closest to the Origin, we can dynamically score documents and calculate new values on-the-fly.

Scripts can be used in various contexts but are leveraged most often:

How to Use Scripts

The default scripting language is Painless. Additional lang plugins enable you to run scripts written in other languages. Everywhere a script can be used, you can include a lang parameter to specify the language of the script.

Supported Languages

Script Syntax