elastic / elastic/sense

lowercase get method in mget causes failed to derive from xcontent

Open
#85 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
379
Forks
128
PR merge metrics
No merged PRs in 30d

Description

The following call doesn't work from sense because of the lowercase get, although with other apis that (GET vs get) doesn't seem to be a problem:

```
get _mget
{
"docs" : [
{
"_index":"my_index",
"_type":"my_type",
"_id":"1"
}
]
}
```

causes a "failed to derive from xcontent error returned from elasticsearch, I guess because of the incorrect request body that gets sent.

Following call works perfectly though:

```
GET _mget
{
"docs" : [
{
"_index":"my_index",
"_type":"my_type",
"_id":"1"
}
]
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.