一、es6.x
{"settings": {"number_of_shards": "2","number_of_replicas": "2","max_result_window": 100000},"mappings": {"doc": {"dynamic": "strict","properties": {"name": {"type": "keyword"}}}}
}
二、es7.x
{"number_of_shards": "2","number_of_replicas": "2","max_result_window": 100000,"analysis": {"analyzer": {"ik": {"tokenizer": "ik_max_word"}}},"dynamic": "strict","properties": {"name": {"type": "text"}}
}