Elasticsearch整合ik分词整合实践准备
实验
一开始前ik分词是没有的
POST /_analyze
{
"text": "我爱北京天安门",
"analyzer": "standard"
}
IK分词默认是没有安装的
POST /_analyze
{
"text": "我爱北京天安门",
"analyzer": "ik_max_word"
}
安装IK分词器
选择对应IK版本下载下来
https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v6.2.4
在对应plugins,新建ik文件夹
将下载下来的zip包解压到里面
重启
elasticesearch.bat
可以分词内容了