Installing additional scripting languages
Elasticsearch provides native scripting (that is, Java code compiled in JAR files) and Painless, but a lot of other interesting languages are also available, such as Kotlin.
Note
At the time of writing this book, there are no available language plugins as part of Elasticsearch’s official ones. Usually, plugin authors will take a week or up to a month to update their plugins to the new version after a major release. This section will be a reference for this use case based on Elasticsearch 7.x. As previously stated, the official language is now Painless, and this is provided by default in Elasticsearch for better sandboxing and performance.
Getting ready
You will need an up-and-running Elasticsearch installation, similar to the one that we described in the Downloading and installing Elasticsearch recipe in Chapter 1, Getting Started.
How to do it...
In order to install the Kotlin language support for Elasticsearch, we...