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"]
}
mget 同时获取
转载文章标签 elasticsearch ide 知识 文章分类 代码人生
本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:闭包的潜在用处
下一篇:elk 分布式数据同步
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
java同时处理多个数据
java同时处理多个数据的三种常用方法详解,并提供了详细的代码示例。
java 抛出异常 多线程