聚合全网技术文章,根据你的阅读喜好进行个性推荐
开源之夏第三届火热来袭,高校学生参与赢万元奖金!>>>
elasticsearch的mapping设置,如题
很多资料啊
在命令行:
curl -XPUT 'http://IP:9200/your_index' -H 'Content-Type: application/json' -d ' "mappings":{ "type":{ "properties":{ "name":{ "type": "keyword" }, "age":{ "type": "keyword" } } } } '
在kibana:
PUT yourIndex { "mappings": { "type": { "properties": { "username": { "type": "keyword" }, "age": { "type": "keyword" } } } } }
目前mapping只能新建,新建成功后,无法修改mapping
很多资料啊
在命令行:
在kibana:
目前mapping只能新建,新建成功后,无法修改mapping