Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
REST API: Cannot expand_wildcards for only closed indices #7258
The expand_wildcards option supports 'open', 'closed', and 'open,closed'. If you specify 'closed' and the defaultSettings are 'open', both open and closed indices will match. This is because the defaults are pre-selected so even if only 'closed' is provided in the request, open will still be set as well. Need to change it so it only sets the defaults if the "expand_wildcards" parameter is not provided
Right, this is odd, caused by the fact that usually you just want to either expand to open or open and closed, not closed only.
One other thing that I noticed is that it is not possible to disable expanding wildcards from the REST layer, while it would be possible from the java api I think.