Installing additional script plugins
ElasticSearch provides native scripting (a Java code compiled in JAR) and MVEL, but a lot of interesting languages are available, such as JavaScript and Python. These languages must be installed as plugins.
Getting ready
You need a working ElasticSearch cluster.
How to do it...
For installing a JavaScript language support for Elasticsearch, we will perform the following steps:
From the command line, simply call the following command:
bin/plugin --install elasticsearch/elasticsearch-lang-javascript/1.4.0
It will fire as results:
-> Installing elasticsearch/elasticsearch-lang-javascript/1.4.0... Trying http://download.elasticsearch.org/elasticsearch/elasticsearch-lang-javascript/elasticsearch-lang-javascript-1.4.0.zip... Downloading ....DONE Installed lang-javascript
If the installation is successful, the output will end with Installed; otherwise, an error is returned.
For installing a Python language support for Elasticsearch, just call the following command...