Elasticsearch如何设置单个字段两种分词器
请求地址:http://127.0.0.1:9200/index/_mapping/type PUT请求
{ "properties": { "searchWord": { "type": "text", "analyzer": "ik_max_word", "fields": { "cn": { "type": "text", "analyzer": "ik_max_word" }, "en": { "type": "text", "analyzer": "english" } } } } }