当前位置:首页 > 编程笔记 > 正文
已解决

es6.x和es7.x如何创建索引?

来自网友在路上 147847提问 提问时间:2023-10-10 03:55:13阅读次数: 47

最佳答案 问答题库478位专家为你答疑解惑

一、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"}}
}
查看全文

99%的人还看了

猜你感兴趣

版权申明

本文"es6.x和es7.x如何创建索引?":http://eshow365.cn/6-18149-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!