本文主要是介绍es6.x和es7.x如何创建索引?,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
一、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"}}
}
这篇关于es6.x和es7.x如何创建索引?的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!