2013-08-28 19:24:34 -04:00
|
|
|
[[modules-plugins]]
|
|
|
|
== Plugins
|
|
|
|
|
|
|
|
[float]
|
|
|
|
=== Plugins
|
|
|
|
|
|
|
|
Plugins are a way to enhance the basic elasticsearch functionality in a
|
|
|
|
custom manner. They range from adding custom mapping types, custom
|
|
|
|
analyzers (in a more built in fashion), native scripts, custom discovery
|
|
|
|
and more.
|
|
|
|
|
|
|
|
[float]
|
2013-09-25 12:17:40 -04:00
|
|
|
[[installing]]
|
2013-08-28 19:24:34 -04:00
|
|
|
==== Installing plugins
|
|
|
|
|
|
|
|
Installing plugins can either be done manually by placing them under the
|
|
|
|
`plugins` directory, or using the `plugin` script. Several plugins can
|
|
|
|
be found under the https://github.com/elasticsearch[elasticsearch]
|
|
|
|
organization in GitHub, starting with `elasticsearch-`.
|
|
|
|
|
2013-09-03 15:27:49 -04:00
|
|
|
Installing plugins typically take the following form:
|
|
|
|
|
|
|
|
[source,shell]
|
|
|
|
-----------------------------------
|
2015-06-22 17:49:45 -04:00
|
|
|
bin/plugin --install <org>/<user/component>/<version>
|
2013-09-03 15:27:49 -04:00
|
|
|
-----------------------------------
|
|
|
|
|
|
|
|
The plugins will be
|
2015-05-01 14:37:26 -04:00
|
|
|
automatically downloaded in this case from `download.elastic.co`,
|
2013-08-28 19:24:34 -04:00
|
|
|
and in case they don't exist there, from maven (central and sonatype).
|
|
|
|
|
|
|
|
Note that when the plugin is located in maven central or sonatype
|
|
|
|
repository, `<org>` is the artifact `groupId` and `<user/component>` is
|
|
|
|
the `artifactId`.
|
|
|
|
|
|
|
|
A plugin can also be installed directly by specifying the URL for it,
|
|
|
|
for example:
|
|
|
|
|
2013-09-03 15:27:49 -04:00
|
|
|
[source,shell]
|
|
|
|
-----------------------------------
|
2014-01-19 19:34:12 -05:00
|
|
|
bin/plugin --url file:///path/to/plugin --install plugin-name
|
2013-09-03 15:27:49 -04:00
|
|
|
-----------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
You can run `bin/plugin -h`.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[float]
|
2013-09-25 12:17:40 -04:00
|
|
|
[[site-plugins]]
|
2013-08-28 19:24:34 -04:00
|
|
|
==== Site Plugins
|
|
|
|
|
|
|
|
Plugins can have "sites" in them, any plugin that exists under the
|
|
|
|
`plugins` directory with a `_site` directory, its content will be
|
|
|
|
statically served when hitting `/_plugin/[plugin_name]/` url. Those can
|
|
|
|
be added even after the process has started.
|
|
|
|
|
|
|
|
Installed plugins that do not contain any java related content, will
|
|
|
|
automatically be detected as site plugins, and their content will be
|
|
|
|
moved under `_site`.
|
|
|
|
|
|
|
|
The ability to install plugins from Github allows to easily install site
|
|
|
|
plugins hosted there by downloading the actual repo, for example,
|
|
|
|
running:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
bin/plugin --install mobz/elasticsearch-head
|
|
|
|
bin/plugin --install lukas-vlcek/bigdesk
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
Will install both of those site plugins, with `elasticsearch-head`
|
|
|
|
available under `http://localhost:9200/_plugin/head/` and `bigdesk`
|
|
|
|
available under `http://localhost:9200/_plugin/bigdesk/`.
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Mandatory Plugins
|
|
|
|
|
|
|
|
If you rely on some plugins, you can define mandatory plugins using the
|
|
|
|
`plugin.mandatory` attribute, for example, here is a sample config:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
plugin.mandatory: mapper-attachments,lang-groovy
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
For safety reasons, if a mandatory plugin is not installed, the node
|
|
|
|
will not start.
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Installed Plugins
|
|
|
|
|
|
|
|
A list of the currently loaded plugins can be retrieved using the
|
|
|
|
<<cluster-nodes-info,Node Info API>>.
|
|
|
|
|
2013-09-04 13:38:05 -04:00
|
|
|
[float]
|
|
|
|
==== Removing plugins
|
|
|
|
|
|
|
|
Removing plugins can either be done manually by removing them under the
|
|
|
|
`plugins` directory, or using the `plugin` script.
|
|
|
|
|
|
|
|
Removing plugins typically take the following form:
|
|
|
|
|
|
|
|
[source,shell]
|
|
|
|
-----------------------------------
|
|
|
|
plugin --remove <pluginname>
|
|
|
|
-----------------------------------
|
|
|
|
|
2013-09-05 10:20:37 -04:00
|
|
|
[float]
|
|
|
|
==== Silent/Verbose mode
|
|
|
|
|
|
|
|
When running the `plugin` script, you can get more information (debug mode) using `--verbose`.
|
|
|
|
On the opposite, if you want `plugin` script to be silent, use `--silent` option.
|
|
|
|
|
|
|
|
Note that exit codes could be:
|
|
|
|
|
|
|
|
* `0`: everything was OK
|
|
|
|
* `64`: unknown command or incorrect option parameter
|
|
|
|
* `74`: IO error
|
|
|
|
* `70`: other errors
|
|
|
|
|
|
|
|
[source,shell]
|
|
|
|
-----------------------------------
|
|
|
|
bin/plugin --install mobz/elasticsearch-head --verbose
|
|
|
|
plugin --remove head --silent
|
|
|
|
-----------------------------------
|
|
|
|
|
2014-01-01 17:31:32 -05:00
|
|
|
[float]
|
|
|
|
==== Timeout settings
|
|
|
|
|
|
|
|
By default, the `plugin` script will wait indefinitely when downloading before failing.
|
|
|
|
The timeout parameter can be used to explicitly specify how long it waits. Here is some examples of setting it to
|
|
|
|
different values:
|
|
|
|
|
|
|
|
[source,shell]
|
|
|
|
-----------------------------------
|
|
|
|
# Wait for 30 seconds before failing
|
|
|
|
bin/plugin --install mobz/elasticsearch-head --timeout 30s
|
|
|
|
|
|
|
|
# Wait for 1 minute before failing
|
|
|
|
bin/plugin --install mobz/elasticsearch-head --timeout 1m
|
|
|
|
|
|
|
|
# Wait forever (default)
|
|
|
|
bin/plugin --install mobz/elasticsearch-head --timeout 0
|
|
|
|
-----------------------------------
|
2013-09-05 10:20:37 -04:00
|
|
|
|
2014-08-04 11:04:19 -04:00
|
|
|
[float]
|
|
|
|
==== Proxy settings
|
|
|
|
|
|
|
|
To install a plugin via a proxy, you can pass the proxy details using the environment variables `proxyHost` and `proxyPort`.
|
|
|
|
|
|
|
|
On Linux and Mac, here is an example of setting it:
|
|
|
|
|
|
|
|
[source,shell]
|
|
|
|
-----------------------------------
|
|
|
|
bin/plugin -DproxyHost=host_name -DproxyPort=port_number --install mobz/elasticsearch-head
|
|
|
|
-----------------------------------
|
|
|
|
|
|
|
|
On Windows, here is an example of setting it:
|
|
|
|
|
|
|
|
[source,shell]
|
|
|
|
-----------------------------------
|
|
|
|
set JAVA_OPTS="-DproxyHost=host_name -DproxyPort=port_number"
|
|
|
|
bin/plugin --install mobz/elasticsearch-head
|
|
|
|
-----------------------------------
|
|
|
|
|
2014-02-01 16:12:00 -05:00
|
|
|
[float]
|
|
|
|
==== Lucene version dependent plugins
|
|
|
|
|
|
|
|
For some plugins, such as analysis plugins, a specific major Lucene version is
|
|
|
|
required to run. In that case, the plugin provides in its `es-plugin.properties`
|
|
|
|
file the Lucene version for which the plugin was built for.
|
|
|
|
|
|
|
|
If present at startup the node will check the Lucene version before loading the plugin.
|
|
|
|
|
|
|
|
You can disable that check using `plugins.check_lucene: false`.
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
[float]
|
2013-09-25 12:17:40 -04:00
|
|
|
[[known-plugins]]
|
2013-08-28 19:24:34 -04:00
|
|
|
=== Known Plugins
|
|
|
|
|
|
|
|
[float]
|
2013-09-30 17:32:00 -04:00
|
|
|
[[analysis-plugins]]
|
2013-08-28 19:24:34 -04:00
|
|
|
==== Analysis Plugins
|
|
|
|
|
2013-09-04 15:02:08 -04:00
|
|
|
.Supported by Elasticsearch
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-analysis-icu[ICU Analysis plugin]
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-analysis-kuromoji[Japanese (Kuromoji) Analysis plugin].
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-analysis-smartcn[Smart Chinese Analysis Plugin]
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-analysis-stempel[Stempel (Polish) Analysis plugin]
|
|
|
|
|
|
|
|
.Supported by the community
|
|
|
|
* https://github.com/barminator/elasticsearch-analysis-annotation[Annotation Analysis Plugin] (by Michal Samek)
|
|
|
|
* https://github.com/yakaz/elasticsearch-analysis-combo/[Combo Analysis Plugin] (by Olivier Favre, Yakaz)
|
|
|
|
* https://github.com/jprante/elasticsearch-analysis-hunspell[Hunspell Analysis Plugin] (by Jörg Prante)
|
|
|
|
* https://github.com/medcl/elasticsearch-analysis-ik[IK Analysis Plugin] (by Medcl)
|
|
|
|
* https://github.com/suguru/elasticsearch-analysis-japanese[Japanese Analysis plugin] (by suguru).
|
|
|
|
* https://github.com/medcl/elasticsearch-analysis-mmseg[Mmseg Analysis Plugin] (by Medcl)
|
|
|
|
* https://github.com/chytreg/elasticsearch-analysis-morfologik[Morfologik (Polish) Analysis plugin] (by chytreg)
|
|
|
|
* https://github.com/imotov/elasticsearch-analysis-morphology[Russian and English Morphological Analysis Plugin] (by Igor Motov)
|
2014-05-25 18:21:05 -04:00
|
|
|
* https://github.com/synhershko/elasticsearch-analysis-hebrew[Hebrew Analysis Plugin] (by Itamar Syn-Hershko)
|
2013-09-04 15:02:08 -04:00
|
|
|
* https://github.com/medcl/elasticsearch-analysis-pinyin[Pinyin Analysis Plugin] (by Medcl)
|
|
|
|
* https://github.com/medcl/elasticsearch-analysis-string2int[String2Integer Analysis Plugin] (by Medcl)
|
2014-10-20 05:55:25 -04:00
|
|
|
* https://github.com/duydo/elasticsearch-analysis-vietnamese[Vietnamese Analysis Plugin] (by Duy Do)
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2014-02-06 11:40:13 -05:00
|
|
|
[float]
|
|
|
|
[[discovery-plugins]]
|
|
|
|
==== Discovery Plugins
|
|
|
|
|
|
|
|
.Supported by Elasticsearch
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-cloud-aws[AWS Cloud Plugin] - EC2 discovery and S3 Repository
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-cloud-azure[Azure Cloud Plugin] - Azure discovery
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-cloud-gce[Google Compute Engine Cloud Plugin] - GCE discovery
|
|
|
|
|
2014-07-04 02:44:56 -04:00
|
|
|
.Supported by the community
|
|
|
|
* https://github.com/shikhar/eskka[eskka Discovery Plugin] (by Shikhar Bhushan)
|
2015-05-14 18:01:58 -04:00
|
|
|
* https://github.com/grantr/elasticsearch-srv-discovery[DNS SRV Discovery Plugin] (by Grant Rodgers)
|
2014-07-04 02:44:56 -04:00
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
[float]
|
2013-09-25 12:17:40 -04:00
|
|
|
[[transport]]
|
2013-08-28 19:24:34 -04:00
|
|
|
==== Transport Plugins
|
|
|
|
|
2013-09-04 15:02:08 -04:00
|
|
|
.Supported by Elasticsearch
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-transport-wares[Servlet transport]
|
|
|
|
|
|
|
|
.Supported by the community
|
|
|
|
* https://github.com/tlrx/transport-zeromq[ZeroMQ transport layer plugin] (by Tanguy Leroux)
|
|
|
|
* https://github.com/sonian/elasticsearch-jetty[Jetty HTTP transport plugin] (by Sonian Inc.)
|
2014-02-04 05:23:27 -05:00
|
|
|
* https://github.com/kzwang/elasticsearch-transport-redis[Redis transport plugin] (by Kevin Wang)
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[float]
|
2013-09-25 12:17:40 -04:00
|
|
|
[[scripting]]
|
2013-08-28 19:24:34 -04:00
|
|
|
==== Scripting Plugins
|
|
|
|
|
2013-09-04 15:02:08 -04:00
|
|
|
.Supported by Elasticsearch
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-lang-groovy[Groovy lang Plugin]
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-lang-javascript[JavaScript language Plugin]
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-lang-python[Python language Plugin]
|
2015-06-23 15:52:38 -04:00
|
|
|
|
|
|
|
.Supported by the community
|
|
|
|
* https://github.com/hiredman/elasticsearch-lang-clojure[Clojure Language Plugin] (by Kevin Downey)
|
2014-08-31 13:44:06 -04:00
|
|
|
* https://github.com/NLPchina/elasticsearch-sql/[SQL language Plugin] (by nlpcn)
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[float]
|
2013-09-25 12:17:40 -04:00
|
|
|
[[site]]
|
2013-08-28 19:24:34 -04:00
|
|
|
==== Site Plugins
|
|
|
|
|
2013-09-04 15:02:08 -04:00
|
|
|
.Supported by the community
|
2013-08-28 19:24:34 -04:00
|
|
|
* https://github.com/lukas-vlcek/bigdesk[BigDesk Plugin] (by Lukáš Vlček)
|
2013-09-04 15:02:08 -04:00
|
|
|
* https://github.com/mobz/elasticsearch-head[Elasticsearch Head Plugin] (by Ben Birch)
|
2014-01-06 15:58:46 -05:00
|
|
|
* https://github.com/royrusso/elasticsearch-HQ[Elasticsearch HQ] (by Roy Russo)
|
2013-09-04 15:02:08 -04:00
|
|
|
* https://github.com/andrewvc/elastic-hammer[Hammer Plugin] (by Andrew Cholakian)
|
|
|
|
* https://github.com/polyfractal/elasticsearch-inquisitor[Inquisitor Plugin] (by Zachary Tong)
|
|
|
|
* https://github.com/karmi/elasticsearch-paramedic[Paramedic Plugin] (by Karel Minařík)
|
|
|
|
* https://github.com/polyfractal/elasticsearch-segmentspy[SegmentSpy Plugin] (by Zachary Tong)
|
2014-04-15 16:15:14 -04:00
|
|
|
* https://github.com/xyu/elasticsearch-whatson[Whatson Plugin] (by Xiao Yu)
|
2015-05-27 04:28:53 -04:00
|
|
|
* https://github.com/lmenezes/elasticsearch-kopf[Kopf Plugin] (by lmenezes)
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2014-02-06 11:40:13 -05:00
|
|
|
[float]
|
|
|
|
[[repository-plugins]]
|
|
|
|
==== Snapshot/Restore Repository Plugins
|
|
|
|
|
|
|
|
.Supported by Elasticsearch
|
|
|
|
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-hadoop/tree/master/repository-hdfs[Hadoop HDFS] Repository
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-cloud-aws#s3-repository[AWS S3] Repository
|
|
|
|
|
2014-02-07 02:48:08 -05:00
|
|
|
.Supported by the community
|
|
|
|
|
|
|
|
* https://github.com/kzwang/elasticsearch-repository-gridfs[GridFS] Repository (by Kevin Wang)
|
2014-11-20 15:52:02 -05:00
|
|
|
* https://github.com/wikimedia/search-repository-swift[Openstack Swift]
|
2014-02-07 02:48:08 -05:00
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
[float]
|
2013-09-25 12:17:40 -04:00
|
|
|
[[misc]]
|
2013-08-28 19:24:34 -04:00
|
|
|
==== Misc Plugins
|
|
|
|
|
2013-09-04 15:02:08 -04:00
|
|
|
.Supported by Elasticsearch
|
|
|
|
* https://github.com/elasticsearch/elasticsearch-mapper-attachments[Mapper Attachments Type plugin]
|
|
|
|
|
|
|
|
.Supported by the community
|
|
|
|
* https://github.com/carrot2/elasticsearch-carrot2[carrot2 Plugin]: Results clustering with carrot2 (by Dawid Weiss)
|
2014-01-06 15:58:46 -05:00
|
|
|
* https://github.com/derryx/elasticsearch-changes-plugin[Elasticsearch Changes Plugin] (by Thomas Peuss)
|
2013-11-19 11:15:21 -05:00
|
|
|
* https://github.com/johtani/elasticsearch-extended-analyze[Extended Analyze Plugin] (by Jun Ohtani)
|
2015-01-05 06:53:04 -05:00
|
|
|
* https://github.com/YannBrrd/elasticsearch-entity-resolution[Entity Resolution Plugin] using http://github.com/larsga/Duke[Duke] for duplication detection (by Yann Barraud)
|
2014-01-06 15:58:46 -05:00
|
|
|
* https://github.com/spinscale/elasticsearch-graphite-plugin[Elasticsearch Graphite Plugin] (by Alexander Reelsen)
|
|
|
|
* https://github.com/mattweber/elasticsearch-mocksolrplugin[Elasticsearch Mock Solr Plugin] (by Matt Weber)
|
|
|
|
* https://github.com/viniciusccarvalho/elasticsearch-newrelic[Elasticsearch New Relic Plugin] (by Vinicius Carvalho)
|
|
|
|
* https://github.com/swoop-inc/elasticsearch-statsd-plugin[Elasticsearch Statsd Plugin] (by Swoop Inc.)
|
2013-09-04 15:02:08 -04:00
|
|
|
* https://github.com/endgameinc/elasticsearch-term-plugin[Terms Component Plugin] (by Endgame Inc.)
|
2014-01-06 15:58:46 -05:00
|
|
|
* http://tlrx.github.com/elasticsearch-view-plugin[Elasticsearch View Plugin] (by Tanguy Leroux)
|
2013-09-04 15:02:08 -04:00
|
|
|
* https://github.com/sonian/elasticsearch-zookeeper[ZooKeeper Discovery Plugin] (by Sonian Inc.)
|
2014-03-05 06:51:44 -05:00
|
|
|
* https://github.com/kzwang/elasticsearch-image[Elasticsearch Image Plugin] (by Kevin Wang)
|
2014-04-10 13:32:34 -04:00
|
|
|
* https://github.com/wikimedia/search-highlighter[Elasticsearch Experimental Highlighter] (by Wikimedia Foundation/Nik Everett)
|
2014-10-06 12:25:46 -04:00
|
|
|
* https://github.com/wikimedia/search-extra[Elasticsearch Trigram Accelerated Regular Expression Filter] (by Wikimedia Foundation/Nik Everett)
|
2014-05-23 02:51:42 -04:00
|
|
|
* https://github.com/salyh/elasticsearch-security-plugin[Elasticsearch Security Plugin] (by Hendrik Saly)
|
2014-07-03 09:22:17 -04:00
|
|
|
* https://github.com/codelibs/elasticsearch-taste[Elasticsearch Taste Plugin] (by CodeLibs Project)
|
2014-07-22 11:27:55 -04:00
|
|
|
* http://siren.solutions/siren/downloads/[Elasticsearch SIREn Plugin]: Nested data search (by SIREn Solutions)
|
2013-08-28 19:24:34 -04:00
|
|
|
|