elastic / elastic/sense

GET request ends up indexing a document

Open
#86 5 comments 0 reactions 0 assignees View on GitHub
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

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.