安装ik分词插件
git clone https://github.com/medcl/elasticsearch-analysis-ik
git checkout tags/v5.2.0 #切换到对应的版本
mvn package
建立相应的ik分词插件目录
mkdir /usr/local/es/elasticsearch-5.2.0/plugins/ik
复制压缩包到目录下
cp target/releases/elasticsearch-analysis-ik-5.2.0.zip /usr/local/es/elasticsearch-5.2.0/plugins/ik
unzip elasticsearch-analysis-ik-5.2.0.zip
解压重启即可