第三章请求方法的疑问
gm100861 opened this issue · 1 comments
gm100861 commented
http://es.xiaoleilu.com/030_Data/50_Mget.html
GET /_mget
{
"docs" : [
{
"_index" : "website",
"_type" : "blog",
"_id" : 2
},
{
"_index" : "website",
"_type" : "pageviews",
"_id" : 1,
"_source": "views"
}
]
}
这里的GET,是不是应该用POST方法啊?
looly commented
ES是基于Restful API的,因此GET请求也会有body。具体请求格式见http://wiki.jikexueyuan.com/project/elasticsearch-definitive-guide-cn/010_Intro/15_API.html