elastic/elasticsearch

Consider deprecating/ removing support for wildcards in `term` queries on `_index`.

Open

#34,162 opened on Sep 28, 2018

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Java (25,882 forks)batch import
:Search Relevance/Search>deprecationTeam:Search Relevancehelp wanted

Repository metrics

Stars
 (76,700 stars)
PR merge metrics
 (Avg merge 2d) (1,000 merged PRs in 30d)

Description

When evaluating a terms query against the _index field, simple wildcard patterns are accepted: https://gist.github.com/jtibshirani/7992dc355b677e8537c333616d3c0270

This is not a huge problem because index names can't contain asterisks, but I think it's confusing and not consistent with the normal behavior of terms queries. It would be good to consider deprecating + removing this ability. We support wildcard queries on the _index field, so the behavior could be changed without a regression in functionality.

Contributor guide