#
GET my_store/_search
{
"query": {
"match_all": {}
}
}
#添加索引
PUT /test2
{
"mappings": {
"properties": {
"name":{
"type": "text"
},
"age":{
"type": "long"
},
"brithday":{
"type": "date"
}
}
}
}
#查看索引
GET test2
#添加索引对应值
PUT /test3/_doc/1
{
"name":"玉玉",
"age":23,
"brithday":"2020-01-01"
}
#查看索引对应文档
GET test3/_doc/1
GET _cat/indices
#修改对应索引文档值
PUT /test3/_doc/1
{
"name":"玉玉11",
"age":23,
"brithday":"2020-01-01"
}
#更新对应索引文档值
POST /test3/_doc/1/_update
{
"doc": {
"name":"鱼鱼鱼"
}
}
#删除索引,以及对应的数据
DELETE test2