Elasticsearch模块功能之-插件(Plugins)

来源:互联网 发布:净利润算法 编辑:程序博客网 时间:2024/06/02 18:27

插件可以通过自定的方式扩展加强Elasticsearch的基本功能,比如可以自定义类型映射,分词器,本地脚本,自动发现等。

        所有插件都要放在plugins下,通常插件的安装有两种方式,第一种是在线安装,使用ES_HOME/bin/plugin–install org>/<user/component>/<version>默认会到download.elasticsearch.orgmaven(centralsonatype)去下载安装插件。第二种方式手动安装,使用的命令如下:

ES_HOME/bin/plugin --url file:///path/to/plugin --installplugin-name。

强制性插件(mandatoryplugins):强制性插件需要特殊的配置,如plugin.mandatory: mapper-attachments,lang-groovy,一旦如此配置之后,如果相应的插件未安装,Elasticsearch节点将不能启动。

         查看已安装的插件使用命令行:curl-XGET 'http://localhost:9200/_nodes'。

【参考:】http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index.html

0 0