下载

下载和elaticsearch对应版本的ik分词 https://github.com/medcl/elasticsearch-analysis-ik/releases

安装

elasticsearch-plugin install -b file:///elasticsearch-analysis-ik-5.6.8.zip 重启elasticsearch

测试

查看插件是否安装

get http://localhost:9200/_cat/plugins elasticsearch-plugin list

参考:

https://github.com/medcl/elasticsearch-analysis-ik