1,创建表结构。使用PUT请求
{
"mapping": {
"first": {
"properties": {
"name": {
"type": "keyword"
},
"birthday": {
"type": "date"
},
"age": {
"type": "integer"
},
"desc": {
"type": "text"
}
}
}
}
}
2,给student索引,以及first类型添加内容,使用POST 请求,索引“1”可以加,也可以不添加,如果不添加,就随机生成 一个,