Skip to content

Conversation

@jtibshirani
Copy link
Contributor

Backport of #46640. Also includes a note in the 7.5 migration docs as it technically includes a breaking change.

Previously, queries on the _index field were not able to specify index aliases.
This was a regression in functionality compared to the 'indices' query that was
deprecated and removed in 6.0.

Now queries on _index can specify an alias, which is resolved to the concrete
index names when we check whether an index matches. To match a remote shard
target, the pattern needs to be of the form 'cluster:index' to match the
fully-qualified index name. Index aliases can be specified in the following query
types: term, terms, prefix, and wildcard.
@jtibshirani jtibshirani added >bug :Search/Search Search-related issues that do not fall into other categories backport labels Sep 20, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@jtibshirani
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/1

@jtibshirani jtibshirani merged commit 9124c94 into elastic:7.x Sep 23, 2019
@jtibshirani jtibshirani deleted the index-query-with-aliases branch September 23, 2019 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >bug :Search/Search Search-related issues that do not fall into other categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants