- Elasticsearch Guide: other versions:
- Setup
- API Conventions
- Document APIs
- Search APIs
- Indices APIs
- Create Index
- Delete Index
- Indices Exists
- Open / Close Index API
- Put Mapping
- Get Mapping
- Get Field Mapping
- Types Exists
- Delete Mapping
- Index Aliases
- Update Indices Settings
- Get Settings
- Analyze
- Index Templates
- Warmers
- Status
- Indices Stats
- Indices Segments
- Clear Cache
- Flush
- Refresh
- Optimize
- Gateway Snapshot
- Cluster APIs
- Query DSL
- Queries
- Match Query
- Multi Match Query
- Bool Query
- Boosting Query
- Common Terms Query
- Custom Filters Score Query
- Custom Score Query
- Custom Boost Factor Query
- Constant Score Query
- Dis Max Query
- Field Query
- Filtered Query
- Fuzzy Like This Query
- Fuzzy Like This Field Query
- Function Score Query
- Fuzzy Query
- GeoShape Query
- Has Child Query
- Has Parent Query
- Ids Query
- Indices Query
- Match All Query
- More Like This Query
- More Like This Field Query
- Nested Query
- Prefix Query
- Query String Query
- Simple Query String Query
- Range Query
- Regexp Query
- Span First Query
- Span Multi Term Query
- Span Near Query
- Span Not Query
- Span Or Query
- Span Term Query
- Term Query
- Terms Query
- Top Children Query
- Wildcard Query
- Text Query
- Minimum Should Match
- Multi Term Query Rewrite
- Filters
- And Filter
- Bool Filter
- Exists Filter
- Geo Bounding Box Filter
- Geo Distance Filter
- Geo Distance Range Filter
- Geo Polygon Filter
- GeoShape Filter
- Geohash Cell Filter
- Has Child Filter
- Has Parent Filter
- Ids Filter
- Indices Filter
- Limit Filter
- Match All Filter
- Missing Filter
- Nested Filter
- Not Filter
- Numeric Range Filter
- Or Filter
- Prefix Filter
- Query Filter
- Range Filter
- Regexp Filter
- Script Filter
- Term Filter
- Terms Filter
- Type Filter
- Queries
- Mapping
- Analysis
- Analyzers
- Tokenizers
- Token Filters
- Standard Token Filter
- ASCII Folding Token Filter
- Length Token Filter
- Lowercase Token Filter
- NGram Token Filter
- Edge NGram Token Filter
- Porter Stem Token Filter
- Shingle Token Filter
- Stop Token Filter
- Word Delimiter Token Filter
- Stemmer Token Filter
- Stemmer Override Token Filter
- Keyword Marker Token Filter
- Keyword Repeat Token Filter
- KStem Token Filter
- Snowball Token Filter
- Phonetic Token Filter
- Synonym Token Filter
- Compound Word Token Filter
- Reverse Token Filter
- Elision Token Filter
- Truncate Token Filter
- Unique Token Filter
- Pattern Capture Token Filter
- Pattern Replace Token Filter
- Trim Token Filter
- Limit Token Count Token Filter
- Hunspell Token Filter
- Common Grams Token Filter
- Normalization Token Filter
- Keep Words Token Filter
- Delimited Payload Token Filter
- Character Filters
- ICU Analysis Plugin
- Modules
- Index Modules
- Glossary of terms
WARNING: Version 0.90 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Plugins
editPlugins
editPlugins
editPlugins 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.
Installing plugins
editInstalling 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 elasticsearch
organization in GitHub, starting with elasticsearch-
.
Starting from 0.90.2, installing plugins typically take the form of
plugin --install <org>/<user/component>/<version>
. The plugins will be
automatically downloaded in this case from download.elastic.co
,
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
.
For prior version, the older form is
plugin -install <org>/<user/component>/<version>
A plugin can also be installed directly by specifying the URL for it,
for example:
bin/plugin --url file:///path/to/plugin --install plugin-name
or
bin/plugin -url file:///path/to/plugin -install plugin-name
for older
version.
Starting from 0.90.2, for more information about plugins, you can run
bin/plugin -h
.
Site Plugins
editPlugins 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:
# From 0.90.2 bin/plugin --install mobz/elasticsearch-head bin/plugin --install lukas-vlcek/bigdesk # From a prior version 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/
.
Mandatory Plugins
editIf you rely on some plugins, you can define mandatory plugins using the
plugin.mandatory
attribute, for example, here is a sample config:
plugin.mandatory: mapper-attachments,lang-groovy
For safety reasons, if a mandatory plugin is not installed, the node will not start.
Installed Plugins
editA list of the currently loaded plugins can be retrieved using the Node Info API.
Removing plugins
editRemoving 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:
plugin --remove <pluginname>
Silent/Verbose mode
editWhen 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
bin/plugin --install mobz/elasticsearch-head --verbose plugin --remove head --silent
Timeout settings
editBy 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:
# 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
Known Plugins
editAnalysis Plugins
editSupported by Elasticsearch
Supported by the community
- Annotation Analysis Plugin (by Michal Samek)
- Combo Analysis Plugin (by Olivier Favre, Yakaz)
- Hunspell Analysis Plugin (by Jörg Prante)
- IK Analysis Plugin (by Medcl)
- Japanese Analysis plugin (by suguru).
- Mmseg Analysis Plugin (by Medcl)
- Morfologik (Polish) Analysis plugin (by chytreg)
- Russian and English Morphological Analysis Plugin (by Igor Motov)
- Pinyin Analysis Plugin (by Medcl)
- String2Integer Analysis Plugin (by Medcl)
River Plugins
editSupported by Elasticsearch
Supported by the community
- ActiveMQ River Plugin (by Dominik Dorn)
- Amazon SQS River Plugin (by Alex Bogdanovski)
- CSV River Plugin (by Martin Bednar)
- Dropbox River Plugin (by David Pilato)
- FileSystem River Plugin (by David Pilato)
- Git River Plugin (by Olivier Bazoud)
- GitHub River Plugin (by uberVU)
- Hazelcast River Plugin (by Steve Samuel)
- JDBC River Plugin (by Jörg Prante)
- JMS River Plugin (by Steve Sarandos)
- Kafka River Plugin (by Endgame Inc.)
- LDAP River Plugin (by Tanguy Leroux)
- MongoDB River Plugin (by Richard Louapre)
- Neo4j River Plugin (by Steve Samuel)
- Open Archives Initiative (OAI) River Plugin (by Jörg Prante)
- Redis River Plugin (by Steve Samuel)
- RSS River Plugin (by David Pilato)
- Sofa River Plugin (by adamlofts)
- Solr River Plugin (by Luca Cavanna)
- St9 River Plugin (by Sunny Gleason)
- Subversion River Plugin (by Pascal Lombard)
- DynamoDB River Plugin (by Kevin Wang)
Transport Plugins
editSupported by Elasticsearch
Supported by the community
- ZeroMQ transport layer plugin (by Tanguy Leroux)
- Jetty HTTP transport plugin (by Sonian Inc.)
- Redis transport plugin (by Kevin Wang)
Scripting Plugins
editSupported by Elasticsearch
Site Plugins
editSupported by the community
- BigDesk Plugin (by Lukáš Vlček)
- Elasticsearch Head Plugin (by Ben Birch)
- ElasticSearch HQ (by Roy Russo)
- Hammer Plugin (by Andrew Cholakian)
- Inquisitor Plugin (by Zachary Tong)
- Paramedic Plugin (by Karel Minařík)
- SegmentSpy Plugin (by Zachary Tong)
Misc Plugins
editSupported by Elasticsearch
- Mapper Attachments Type plugin
- Hadoop Plugin
- AWS Cloud Plugin
- Azure Cloud Plugin - Azure discovery
- Google Compute Engine Cloud Plugin - GCE discovery
Supported by the community
- carrot2 Plugin: Results clustering with carrot2 (by Dawid Weiss)
- ElasticSearch Changes Plugin (by Thomas Peuss)
- Extended Analyze Plugin (by Jun Ohtani)
- ElasticSearch Graphite Plugin (by Alexander Reelsen)
- ElasticSearch Mock Solr Plugin (by Matt Weber)
- ElasticSearch New Relic Plugin (by Vinicius Carvalho)
- ElasticSearch Statsd Plugin (by Swoop Inc.)
- Terms Component Plugin (by Endgame Inc.)
- ElasticSearch View Plugin (by Tanguy Leroux)
- ZooKeeper Discovery Plugin (by Sonian Inc.)
On this page