elastic笔记:ik分词插件安装

系统:centos7
java: build 1.8.0_111-b14
elk:5.2.1

elasticsearch-analysis-ik
下载master分支(当前5.2.1版本)

下载apache-maven-3.3.9-bin.tar.gz,解压/usr/local/apache-maven-3.3.9

进入elasticsearch-analysis-ik目录,执行
/usr/local/apache-maven-3.3.9/bin/mvn package
完成后提示

[INFO] Reading assembly descriptor: /Release/elasticsearch-analysis-ik/src/main/assemblies/plugin.xml
[INFO] Building zip: /Release/elasticsearch-analysis-ik/target/releases/elasticsearch-analysis-ik-5.2.1.zip
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:45 min
[INFO] Finished at: 2017-02-21T12:05:10+08:00
[INFO] Final Memory: 31M/370M

复制插件到elkplugs自定义目录,解压
mkdir /usr/local/elk/plugins/ik

重启生效

你可能感兴趣的:(Elastic)