分词器
内置标准分词器
分析英文
curl -s 192.168.1.27:9200/_analyze \
-H "Content-Type: application/json" \
-d @- <<EOF | jq
{
"analyzer": "standard",
"text": "My name is Will, I'm 32 years old!"
}
EOFcurl 192.168.1.27:9200/_analyze \
-H "Content-Type: application/json" \
-d @analyze.json | jqik 中文分词器安装(每个节点都操作)
下载对应版本的包
解压
重启 ES
ik 中文分词器的使用
细粒度
粗粒度
ik 中文分词器自定义字典(每个节点都操作)
进入ik分词器插件安装目录
自定义字典
加载自定义字典
重启 ES
测试
Last updated