1.下载 (注意,下载对应的版本,本文下载的是5.5.2)
https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v5.5.2/elasticsearch-analysis-ik-5.5.2.zip
2.解压
首先在ES安装目录下的plugins目录下新建目录ik
mkdir ik
再将分词器解压到ik目录下(先解压再移动/复制也可以)
unzip 命令
[root@es1 ik]# cd /opt/install/elasticsearch-5.5.2/plugins/ik/
[root@es1 ik]# ll
total 1420
-rw-rw-r-- 1 elsearch elsearch 263965 Aug 30 2017 commons-codec-1.9.jar
-rw-rw-r-- 1 elsearch elsearch 61829 Aug 30 2017 commons-logging-1.2.jar
drwxrwxr-x 2 elsearch elsearch 299 Aug 30 2017 config
-rw-rw-r-- 1 elsearch elsearch 51395 Aug 30 2017 elasticsearch-analysis-ik-5.5.2.jar
-rw-rw-r-- 1 elsearch elsearch 736658 Aug 30 2017 httpclient-4.5.2.jar
-rw-rw-r-- 1 elsearch elsearch 326724 Aug 30 2017 httpcore-4.4.4.jar
-rw-rw-r-- 1 elsearch elsearch 2666 Aug 30 2017 plugin-descriptor.properties
3.重启ES即可