Skip to content

Multi-target syntax does not exclude indices of the first wildcard exclude #64752

@HarushR

Description

@HarushR

Elasticsearch version (bin/elasticsearch --version): 7.9.3

Plugins installed: None.

JVM version (java -version): 14

OS version: CentOS 7.4

Description of the problem including expected versus actual behavior: When trying to query an index and excluding with wildcard, the first wildcard exclude is not excluded.

Given the indices tatiana, virginia and alina, the expected result of GET tatiana,-ta* is nothing, while the actual response includes the index tatiana. However, GET tatiana,-al*,-ta* will not include tatiana.

Steps to reproduce:

  1. Create an index:
curl -XPUT localhost:9200/tatiana/1 -d '{
 "title": "test document"
}'
  1. GET the index tatiana and remove (exclude) all indices that begin with ta*
    curl -XGET localhost:9200/tatiana,-ta*

Provide logs (if relevant): -

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions