Skip to content
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

Using multiple valid wildcard filters not returning results #66868

Open
drl-max opened this issue Dec 29, 2020 · 2 comments
Open

Using multiple valid wildcard filters not returning results #66868

drl-max opened this issue Dec 29, 2020 · 2 comments
Labels
>bug :Data Management/CAT APIs Text APIs behind /_cat Team:Data Management Meta label for data/management team

Comments

@drl-max
Copy link

drl-max commented Dec 29, 2020

Elasticsearch version (bin/elasticsearch --version):
Docker image: docker.elastic.co/elasticsearch/elasticsearch:7.7.1
Plugins installed: []
Whatever comes with the Docker image
JVM version (java -version):
Whatever comes with the Docker image
OS version (uname -a if on a Unix-like system):
Whatever comes with the Docker image
Description of the problem including expected versus actual behavior:
The documentation for the _cat/templates API states that it supports using a comma-separated list of wildcard filters, but I'm finding that it's not working. In fact, it appears to guarantee zero results regardless of the filters validity.

I've experienced the same behavior using the NPM module and the dev console in Kibana 7.7.1. My provided example uses the _cat/templates endpoint, but I've had the same issue with _cat/indices and _cat/aliases too.
Steps to reproduce:
Create some templates:

PUT _template/tmpl1-aoeu
{ "index_patterns": ["ignore"] }

PUT _template/tmpl2-ueoa
{ "index_patterns": ["ignore"] }

Using one wildcard filter returns both templates

GET _cat/templates/tmpl*?v

=> 

name       index_patterns order version
tmpl1-aoeu [ignore]       0     
tmpl2-ueoa [ignore]       0     

Using multiple valid wildcard filters returns nothing

GET _cat/templates/tmpl1-*,tmpl2-*?v

=>

name index_patterns order version

Even something vacuous has the same result

GET _cat/templates/*,*?v

=>

name index_patterns order version
@drl-max drl-max added >bug needs:triage Requires assignment of a team area label labels Dec 29, 2020
@nik9000 nik9000 added the :Data Management/CAT APIs Text APIs behind /_cat label Dec 29, 2020
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Dec 29, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@joegallo
Copy link
Contributor

joegallo commented Jan 4, 2021

Tangentially related to #65667

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/CAT APIs Text APIs behind /_cat Team:Data Management Meta label for data/management team
Projects
None yet
Development

No branches or pull requests

5 participants