-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Recovery API supports details
param not detailed
#28910
Comments
In a few rest apis Line 72 in e7d1e12
And details is used as a filedname in few responses :elasticsearch/server/src/main/java/org/elasticsearch/rest/action/search/RestExplainAction.java Line 141 in e7d1e12
elasticsearch/server/src/main/java/org/elasticsearch/rest/action/search/RestExplainAction.java Line 121 in e7d1e12
Maybe it would be more consistent to change the details to detailed ?
|
Pinging @elastic/es-core-infra |
Pinging @elastic/es-distributed |
I think that it would be better to go the second way : use |
@olcbean I am not sure, you would go that way because the param was accepted before as |
Yes, and even if there were users using |
@PnPie one could say there is a subtle difference between not doing anything and throwing error. Probably the latter is better than the former at this point, at least you know that something does not work upfront. |
Sorry, I think that I was not really clear. Let me try to re-elaborate. What I meant is that at this case it could be better to go with the documentation and stick with the Without digging too deep, a quick search through the Maybe making |
@olcbean Yes, I agree with that (keep it the same as others), and according to all we discussed, I'm more in favor of keeping it as |
agreed @PnPie, I have updated the description of this issue accordingly. |
As part of #28878 we discovered that the recovery API accepts a
detailed
parameter, also documented, that is unused. The parameter should rather be calleddetails
(see https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryState.java#L918), although it's no longer accepted by the recovery API since we introduced parameters validation. Also thedetailed
flag is transported to the response, without being serialized nor printed out, where it should be removed.We should make this work, by
either accepting themodifyingdetails
param instead and updating docs and spec orRecoveryState
to look fordetailed
instead ofdetails
. The detailed flag though doesn't need to be part of the response, and does not need to be part of the request either, given thatRestRequest
is provided asParams
argument to thetoXContent
method.The text was updated successfully, but these errors were encountered: