1,查看es插件
curl -XGET "http://sf-centos28-27:9200/_cat/plugins"
2、使用ik分词器进行分词
curl -XGET "http://sf-centos28-07:9200/_analyze" -d' { "analyzer":"ik_max_word", "text","床前明月光,疑是地上霜。举头望明月,低头思故乡。" }'
3、安装ik分词器
scp elasticsearch-analysisi-ik-5.6.16.zip sf-centos-07:/opt scp elasticsearch-analysisi-ik-5.6.16.zip sf-centos-08:/opt scp elasticsearch-analysisi-ik-5.6.16.zip sf-centos-09:/opt #安装ik elasticsearch-plugin install /opt/elasticsearch-analysisi-ik-5.6.16.zip