-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Incorrect REST API spec? #27681
Comments
So... the parameters are still valid, the REST spec is correct and the documentation for the Breaking Changes is incorrect? |
@javanna I'm confused - I would interpret your comments the same way @codebrain did, but that doesn't match the code. The change to the Java request object (from #20712) still stands in v6.0.0 but it seems that the change to the REST spec was accidentally reverted. So, I believe the answer is those parameters are not valid, the rest spec is wrong and the breaking changes doc is correct. |
@tvernum the changes to the java request objects are still valid but they are only exposed to the transport client... if you hit This could be cleaned up further, for instance |
Ah, that makes much more sense. I should have looked at Jason's change more closely. |
So... I can ignore the documentation and leave the parameters where they are? |
@codebrain Yes, the parameters still exist.
and
allow exactly the same parameters, which includes The breaking changes doc is incorrect (out of date) |
OK, I will submit a PR for the breaking changes documentation. |
This was fixed by #27915. |
Looking at the breaking changes for the .NET client. I believe I have found an issue.
The documentation for 6.0 indicates that the
ignore_unavailable
andallow_no_indices
parameters on theindices.exists
call is no longer accepted: https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_60_rest_changes.html#_indices_exists_apihowever
The REST spec (https://github.com/elastic/elasticsearch/blob/6.x/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists.json) still contains them.
The text was updated successfully, but these errors were encountered: