GET request ends up indexing a document
Open
bug
- Dominant language
- JavaScript
- Stars
- 379
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
If you have a search api call but you omit the _search endpoint in the url, you end up indexing a document:
```
GET test/my_type
{
"query" : {
"match_all": {}
}
}
```
Same doesn't happen via command line, where you get a "feature not found" as the request goes to the get index api and the type is not recognized as a feature. Good as it throws an error rather than writing. We should never write with GET!
Contributor guide
Assessment
This issue has not been assessed yet.