elastic/elasticsearch
在 GitHub 查看Consider deprecating/ removing support for wildcards in `term` queries on `_index`.
Open
#34,162 创建于 2018年9月28日
:Search Relevance/Search>deprecationTeam:Search Relevancehelp wanted
仓库指标
- Star
- (76,700 star)
- PR 合并指标
- (平均合并 2天) (30 天内合并 1,000 个 PR)
描述
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.