{
"acknowledged": true,
"shards_acknowledged": true,
"index": "1111"
}
{
"daocaoren": {
"aliases": {},
"mappings": {},
"settings": {
"index": {
"creation_date": "1686127099199",
"number_of_shards": "5",
"number_of_replicas": "1",
"uuid": "DvvrASslSyG7YdUByApZAQ",
"version": {
"created": "6010099"
},
"provided_name": "daocaoren"
}
}
}
}
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open duijiaoxiang VDlwp5RGQi23G_Jj0J5pIQ 5 1 0 0 1.1kb 1.1kb
yellow open daocaoren DvvrASslSyG7YdUByApZAQ 5 1 0 0 1.1kb 1.1kb
yellow open fudimo 14rW7rhATa2H0OTRUrdElQ 5 1 0 0 1.1kb 1.1kb
{
"acknowledged": true
}
{
"name":"哈利波特",
"age":16
}
{
"_index": "daocaoren",
"_type": "doc",
"_id": "Xj0elYgB-DN7ym1vn-5f",
"_version": 1,
"result": "created",
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
},
"_seq_no": 0,
"_primary_term": 1
}
PUT请求方式后面必须跟id才能新增成功,并且新增多次都会成功!
{
"name":"邓布利多",
"age":16
}
{
"_index": "daocaoren",
"_type": "doc",
"_id": "200",
"_version": 1,
"result": "created",
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
},
"_seq_no": 6,
"_primary_term": 1
}
{
"_index": "daocaoren",
"_type": "doc",
"_id": "400",
"_version": 2,
"found": true,
"_source": {
"name": "邓布利多",
"age": 16
}
}
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 4,
"max_score": 1.0,
"hits": [
{
"_index": "daocaoren",
"_type": "doc",
"_id": "400",
"_score": 1.0,
"_source": {
"name": "邓布利多",
"age": 16
}
},
{
"_index": "daocaoren",
"_type": "doc",
"_id": "100",
"_score": 1.0,
"_source": {
"name": "哈利波特",
"age": 16
}
},
{
"_index": "daocaoren",
"_type": "doc",
"_id": "200",
"_score": 1.0,
"_source": {
"name": "邓布利多",
"age": 16
}
},
{
"_index": "daocaoren",
"_type": "doc",
"_id": "Xj0elYgB-DN7ym1vn-5f",
"_score": 1.0,
"_source": {
"name": "哈利波特",
"age": 16
}
}
]
}
}
{
"name":"邓布利多666",
"age":88
}
{
"_index": "daocaoren",
"_type": "doc",
"_id": "400",
"_version": 3,
"result": "updated",
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
},
"_seq_no": 2,
"_primary_term": 1
}
{
"_index": "daocaoren",
"_type": "doc",
"_id": "400",
"_version": 4,
"result": "deleted",
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
},
"_seq_no": 3,
"_primary_term": 1
}