1,创建表结构。使用PUT请求
{
"mapping": {
"first": {
"properties": {
"name": {
"type": "keyword"
},
"birthday": {
"type": "date"
},
"age": {
"type": "integer"
},
"desc": {
"type": "text"
}
}
}
}
}
2,给student索引,以及first类型添加内容,使用POST 请求,索引“1”可以加,也可以不添加,如果不添加,就随机生成 一个,
3. 查看索引下的对那个的结构:需要指定索引名称,get方式
4,索引下的类型下添加字段,需要 _mapping 映射,first类型指定
5.关于修改字段和 删除字段,目前由于版本变化,还没有测通,如果非要修改的话,可以先备份一下,人后在重新建立索引,再导进去,
第5讲 5.3 ElasticSearch-head操作表结构
猜你喜欢
转载自blog.csdn.net/u010393325/article/details/84101978
今日推荐
周排行