mget 同时获取:

http://192.168.32.81:9200/

_mget                        POST

{
"docs" :[
{
"_index":"library",
"_type" :"books",
"_id": 1
},
{
"_index":"library",
"_type" :"books",
"_id": 2
},
{
"_index":"library",
"_type" :"books",
"_id": 3
}
]
} { "docs": [
{
"_index": "library",
"_type": "books",
"_id": "1",
"_version": 5,
"found": true,
"_source": {
"titile": "Elasticsearch: The Defintive Guide",
"name": {
"first": "Zachary",
"last": "Tong"
},
"publish_date": "2016-07-29",
"price": 10
}
}
,
{
"_index": "library",
"_type": "books",
"_id": "2",
"_version": 1,
"found": true,
"_source": {
"titile": "Elasticsearch: The Defintive Guide",
"name": {
"first": "Zachary",
"last": "Tong"
},
"publish_date": "2016-07-29",
"price": "99.99"
}
}
,
{
"_index": "library",
"_type": "books",
"_id": "3",
"found": false
}
] } /************************ http://192.168.32.81:9200/library/books/ _mget POST {
"ids":["1","2"]
}
05-11 20:57