We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to get a document that doesn't exist, returned values dont't make sense.
Example
res, err := es.Get("index_name", "id_not_exists").Do(context.Background())
Returned values are a nil response and error ElasticsearchError with Status 0
I think returned values should be nil error with Response
Response{ Index_: "index_name", Id_: "id_not_exists", Found: false, }
Or maybe a nil response and ElasticsearchError with Status 404
Is it correct?
The text was updated successfully, but these errors were encountered:
Thank you for reporting this.
Your reasoning is correct and it seems the specification is missing this exceptions in the Get response.
Get
I'll add that and update this issue when the API has been regenerated!
Sorry, something went wrong.
Fixed in release release/8.8.2
Anaethelion
No branches or pull requests
When I try to get a document that doesn't exist, returned values dont't make sense.
Example
Returned values are a nil response and error ElasticsearchError with Status 0
I think returned values should be nil error with Response
Or maybe a nil response and ElasticsearchError with Status 404
Is it correct?
The text was updated successfully, but these errors were encountered: