es分词
http://81.69.251.148:9200/_analyze post
{ "analyzer":"standard", "text":"my name is yuan" }
基于某个索引分析 post
"analyzer":"standard", simple whitespace stop keyword
![](https://img2020.cnblogs.com/blog/1292892/202111/1292892-20211121184511947-1152718853.png)
http://81.69.251.148:9200/my_doc/_analyze
{ "analyzer":"standard", "text":"牛逼", "field":"desc" }
中文分词器 post ik_smart
http://81.69.251.148:9200/_analyze
{ "analyzer":"ik_max_word", "text":"我是一个中国人" }
自定义中文分词
/home/ElasticSearch/elasticsearch-7.4.2/plugins/ik/config下IKAnalyzer.cfg.xml
创建custom.dic文件
重启