elasticsearch安装ik分词

匿名 (未验证) 提交于 2019-12-03 00:11:01

参考 https://blog.csdn.net/wwd0501/article/details/78258274
1.下载地址
ik分词地址 (https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v5.5.1)

2.查询
curl localhost:9200/_cat/plugins 查询安装的分词

3.使用
3.1 创建索引
查询已有索引 curl localhost:9200/_cat/indices?v
创建索引 curl -XPUT localhost:9200/knowledge
创建映射 curl -XPOST localhost:9022/konwledge/student/_mapping -d "{"student":{"properties":{"name":{"type":"text","analyzer":"ik_max_word","search_analyzer":"ik_smart"},"age":{"type": "long"}}}}"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!