分詞插件: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" } } } }