Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于_mget #82

Open
sivanbil opened this issue Dec 8, 2015 · 1 comment
Open

关于_mget #82

sivanbil opened this issue Dec 8, 2015 · 1 comment

Comments

@sivanbil
Copy link

sivanbil commented Dec 8, 2015

看翻译的


GET /_mget  # 此处是GET,但是在测试的时候,发现GET会报错
{
   "docs" : [
      {
         "_index" : "website",
         "_type" :  "blog",
         "_id" :    2
      },
      {
         "_index" : "website",
         "_type" :  "pageviews",
         "_id" :    1,
         "_source": "views"
      }
   ]
}




按照上面的报错



{
"error": {
"root_cause": [
{
"type": "parse_exception",
"reason": "Failed to derive xcontent"
}
],
"type": "parse_exception",
"reason": "Failed to derive xcontent"
},
"status": 400
}

把GET =》 POST



{
"docs": [
{
"_index": "website",
"_type": "blog",
"_id": "2",
"_version": 4,
"found": true,
"_source": {
"title": "xwl11111",
"text": "2015-0919",
"views": 0,
"tags": [
"testing"
],
"view": 5
}
}
]
}

@looly
Copy link
Owner

looly commented Dec 9, 2015

可能是版本更新后的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants