Trying to query all indices that match a given pattern, exact or partial (with *). The aggregation on _field doesn't work since that doesn't seem to match indices with no documents. And I looked into the _cat/indices API which seems like it would work except I can't get it to limit the results to a reasonable amount. Specifying ?size=100 doesn't seem to do anything.
So questions are:
- Is there a way to limit the # of indices coming back from the _cat API
- If not, is there another way that this would work?