简单实例:批量curd操作
mget批量查询
GET /test_index/test_type/1
GET /test_index/test_type/2GET /_mget
{
"docs" : [
{
"_index" : "test_index",
"_type" : "test_type",
"_id" : 1
},
{
"_index" : "test_index",
"_type" : "test_type",
"_id" : 2
}
]
}如果查询的document是一个index下的不同type种的话
如果查询的数据都在同一个index下的同一个type下
bulk批量增删改
Last updated