-
Notifications
You must be signed in to change notification settings - Fork 25.2k
ignore_missing removed from _aliases #7793
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
Comments
The ignore_missing option was removed in 1.0 and in 1.3.2 the flag had not effect (including it or not including it gave the same response). The change in 1.4 was that the API now fully handles IndicesOptions and the default is not to ignore unavailable indices (whereas in 1.3 it would ignore unavailable indices). The breaking changes documentation was updated in #7786 to more clearly explain the change here |
I like Rashid's original proposal to just deprecate ignore_missing and not actually remove it until ES 2.0. We know that this change breaks Kibana 3.x and it's possible it will break other apps people have written. This is a weird situation, where the docs said it was removed but it really wasn't. I get the argument that this is just a bug fix, but I think our users would be better off if we didn't break this in a minor release like 1.4. |
Let me try to clarify what happened, the The only thing we could technically do is keep the inconsistent default and make it lenient if no parameters are specified, but that would mean that the get indices api, the single api that rules them all, would need to have a different behaviour only when returning aliases? That doesn't really make sense to me. That said, I see this as a bugfix which ended up changing the default behaviour of the aliases endpoint, which is now strict instead of lenient, but configurable. If the fact that the change is breaking we should maybe consider taking the get indices api as a whole out of |
Given that the |
For just the case when only the aliases are requested, the default indices options are to ignore missing indexes. When requesting any other feature or any combination of features, the default will be to error on missing indices. Closes #7793
For just the case when only the aliases are requested, the default indices options are to ignore missing indexes. When requesting any other feature or any combination of features, the default will be to error on missing indices. Closes elastic#7793
Continuing discussion from:
#7234 (comment)
It appears that the recent Get Indices API removes ignore_missing:
Elasticsearch 1.3.2
Elasticsearch 1.4 branch
Technically ignore_missing was slated for removal in Elasticsearch 1.0 (http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_parameters.html#_parameters), however it was not removed from this API, meaning this this will introduce a breaking change for 1.4.
It might be better to deprecate ignore_missing and remove it in Elasticsearch 2.0.
The text was updated successfully, but these errors were encountered: