ElasticSearch-IK分词

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

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

 

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"
            }
        }
    }
}
相关文章
相关标签/搜索