HEAD插件安装
官方地址 https://github.com/mobz/elasticsearch-head
2.x.x 版本:
bin/plugin install mobz/elasticsearch-head
5.x.x、6.x.x、7.x.x版本:
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
yum -y install bzip2
npm install
npm audit fix
npm run start
elasticsearch_head/Gruntfile.js 可以修改访问端口
connect: { server: { options: { port: 9100, hostname: '*', base: '.', keepalive: true } } }
elasticsearch_head/_site/app.js 可以修改默认访问地址
this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://192.168.0.1:9200";
需要修改config目录下elasticsearch.yml文件添加以下内容
http.cors.enabled: true
http.cors.allow-origin: "*"
访问地址:http://192.168.0.1:9200/_plugin/head 或者 http://192.168.0.1:9100
KOPF插件安装
项目地址:https://github.com/lmenezes/elasticsearch-kopf
bin/plugin install lmenezes/elasticsearch-kopf
访问地址:http://192.168.0.1:9200/_plugin/kopf
IK分词插件安装
项目地址:https://github.com/medcl/elasticsearch-analysis-ik
下载地址:https://github.com/medcl/elasticsearch-analysis-ik/releases
download:elasticsearch-analysis-ik-7.3.0.zip
unzip elasticsearch-analysis-ik-7.3.0.zip -d analysis-ik
mv analysis-ik/config elasticsearch-7.3.0/config/analysis-ik
mv analysis-ik elasticsearch-7.3.0/plugins/
bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.3.0/elasticsearch-analysis-ik-7.3.0.zip
curl -H "Content-Type:application/json" -XPOST 'http://192.168.0.1:9200/new_index_v1/_analyze?pretty=true' -d '{"analyzer":"ik_smart", "text":"太极宗师张三丰"}'
curl -H "Content-Type:application/json" -XPOST 'http://192.168.0.1:9200/new_index_v1/_analyze?pretty=true' -d '{"analyzer":"ik_max_word", "text":"太极宗师张三丰"}'
MMSEG分词插件安装
项目地址:https://github.com/medcl/elasticsearch-analysis-mmseg
下载地址:https://github.com/medcl/elasticsearch-analysis-mmseg/releases
bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-mmseg/releases/download/v5.5.2/elasticsearch-analysis-mmseg-5.5.2.zip
ANSJ分词插件安装
项目地址:https://github.com/NLPchina/elasticsearch-analysis-ansj
下载地址:https://github.com/NLPchina/elasticsearch-analysis-ansj/releases
bin/elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-analysis-ansj/releases/download/v6.7.0/elasticsearch-analysis-ansj-6.7.0.0-release.zip
JIEBA分词插件安装
项目地址:https://github.com/huaban/elasticsearch-analysis-jieba
下载地址:https://github.com/huaban/elasticsearch-analysis-jieba/releases
bin/plugin install https://github.com/huaban/elasticsearch-analysis-jieba/releases/download/v2.3.5/elasticsearch-analysis-jieba-2.3.5-bin.zip
拼音插件安装
下载地址:https://github.com/medcl/elasticsearch-analysis-pinyin/releases
download:elasticsearch-analysis-pinyin-7.3.0.zip
unzip elasticsearch-analysis-pinyin-7.3.0.zip -d analysis-pinyin
mv analysis-pinyin elasticsearch-7.3.0/plugins/
bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.3.0/elasticsearch-analysis-pinyin-7.3.0.zip
curl -H "Content-Type:application/json" -XPOST 'http://192.168.0.1:9200/new_index_v1/_analyze?pretty=true' -d '{"analyzer":"pinyin", "text":"太极宗师张三丰"}'
简繁体插件安装
下载地址:https://github.com/medcl/elasticsearch-analysis-stconvert/releases
download:elasticsearch-analysis-stconvert-7.3.0.zip
unzip elasticsearch-analysis-stconvert-7.3.0.zip -d analysis-stconvert
mv analysis-stconvert elasticsearch-7.3.0/plugins/
bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-stconvert/releases/download/v7.3.0/elasticsearch-analysis-stconvert-7.3.0.zip
curl -H "Content-Type:application/json" -XPOST 'http://192.168.0.1:9200/new_index_v1/_analyze?pretty=true' -d '{"analyzer":"stconvert", "text":"太极宗师张三丰"}'
SearchGuard插件安装
文档地址:https://docs.search-guard.com/latest
bin/elasticsearch-plugin install -b com.floragunn:search-guard-7:7.3.0-36.1.0
X-PACK插件安装
bin/elasticsearch-plugin install x-pack