Multi-Index pattern exclusions do not work on aliases #33395
Labels
>bug
:Data Management/Indices APIs
APIs to create and manage indices and templates
help wanted
adoptme
Describe the feature:
Multi-index exclusion should work for aliases not just aliases.
Elasticsearch version (
bin/elasticsearch --version
): masterPlugins installed: []
JVM version (
java -version
): Java 10.0.1+10OS version (
uname -a
if on a Unix-like system): Win 10Description of the problem including expected versus actual behavior:
Multi-index allows one to specify an enumeration of indices or aliases, wildcards, inclusions and exclusions when selecting an index.
However it looks like the exclusion, works only for concrete indices and not for aliases.
Steps to reproduce:
assume there are 3 indices, 2 having 2 different aliases pointing to both of them:
The following request:
Returns
test_alias1
.In a similar fashion, using
.aliases("test_alias*")
returns bothtest_alias1
andtest_alias2
as expected.However setting
.aliases("test_alias*", "-test_alias1")
still returnstest_alias1
andtest_alias2
.The expectation is only
test_alias2
is returned.The text was updated successfully, but these errors were encountered: