示例:
GET /spring-elasticsearch-demo/person/1 HTTP/1.1
Host: localhost:9200
Content-Type: application/json
cache-control: no-cache
Postman-Token: 5b200229-505b-45bb-9349-a2b23e1d8e67
{
"_index": "spring-elasticsearch-demo",
"_type": "person",
"_id": "1",
"_version": 4,
"found": true,
"_source": {
"id": "1",
"name": "天天向左",
"description": "这是天天向下",
"age": 24,
"create": 1535760000001
}
}
GET /spring-elasticsearch-demo/person/4 HTTP/1.1
Host: localhost:9200
Content-Type: application/json
cache-control: no-cache
Postman-Token: 07a70aea-c212-4868-ac84-49aeee0752ff
{
"_index": "spring-elasticsearch-demo",
"_type": "person",
"_id": "4",
"found": f