es分词

http://81.69.251.148:9200/_analyze post

{
    "analyzer":"standard",
    "text":"my name is yuan"
}

基于某个索引分析 post

"analyzer":"standard", simple whitespace stop  keyword

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文件

 

 

 

 重启

posted on 2021-11-21 19:37  袁子弹  阅读(80)  评论(0编辑  收藏  举报