分词插件:https://github.com/medcl/elasticsearch-analysis-ik#quick-example

配置说明:https://github.com/medcl/elasticsearch-analysis-ik#quick-example

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

 

PUT http://192.168.40.108:9200/helpcenter/content/_mapping

 

content-type → application/json; charset=UTF-8

 

{
    "content": {
        "properties": {
            "content": {
                "type": "text",
                "analyzer": "ik_max_word",
                "search_analyzer": "ik_smart"
            },
            "category": {
                "type": "text",
                "analyzer": "ik_max_word",
                "search_analyzer": "ik_smart"
            }
        }
    }
}

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄