Installing additional script plugins
ElasticSearch provides native scripting (a Java code compiled in JAR) and Groovy, but a lot of interesting languages are also available, such as JavaScript and Python. In older ElasticSearch releases, prior to version 1.4, the official scripting language was MVEL, but due to the fact that it was not well-maintained by MVEL developers, in addition to the impossibility to sandbox it and prevent security issues, MVEL was replaced with Groovy. Groovy scripting is now provided by default in ElasticSearch. The other scripting languages can be installed as plugins.
Getting ready
You will need a working ElasticSearch cluster.
How to do it...
In order to install JavaScript language support for ElasticSearch (1.3.x), perform the following steps:
- From the command line, simply enter the following command:
bin/plugin --install elasticsearch/elasticsearch-lang-javascript/2.3.0
- This will print the following result:
-> Installing elasticsearch/elasticsearch-lang-javascript...