elastic / elastic/docs-content
[Feedback]: Using the `expand_wilcards = closed` will not show only closed indices
- Dominant language
- No language data
- Stars
- 47
- Forks
- 261
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 116
Description
I tested this with a customer and used the following query:
```
_cat/indices?v=true&s=index&expand_wildcards=open
```
The strange behavior is that when using the `expand_wildcards=open` the query will only show indices with `status = open` but if we change the query to this:
```
_cat/indices?v=true&s=index&expand_wildcards=closed
```
This will not filter the indices to show only `status = close`.
Although I understand this might not be the function of this query parameter, it is not clearly stated on the API documentation.
#### Current Behavior
Right now, using `expand_wildcards=closed` will show all open indices as well as closed ones.
#### Expected Behavior
Using `expand_wildcards=closed` would show only closed indices, or that the documentation clearly state that using the this option will not filter the indices, and show open **and** closed indices.
## Action
_added by @georgewallace_
- Test behavior
- Review with dev team the correct behavior
- If needed update [enum](https://github.com/elastic/elasticsearch-specification/blob/main/specification/_types/common.ts#L206C13-L206C73) to represent the valid description
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.