elasticsearch实际总结(1)——常见错误
文章目录
一、参考
elasticsearch 学习系列目录——更新ing
二、命名规范
2.1 索引名称必须是小写

2.2 字段名称不能包含点号.
(1)创建索引
PUT testfieldname/
{
"mappings": {
"properties": {
"f1.f2": {
"type": "keyword"
}
}
}
}(2) 查看mapping
GET testfieldname/_mapping
{
"testfieldname" : {
"mappings" : {
"properties" : {
"f1" : {
"properties" : {
"f2" : {
"type" : "keyword"
}
}
}
}
}
}
}
字段名称中包含有., 会自动解析为json结构

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论