elastic/elasticsearch

Consider deprecating/ removing support for string-style queries on certain metadata fields.

Open

#34,160 opened on Sep 28, 2018

View on GitHub
 (2 comments) (1 reaction) (0 assignees)Java (25,882 forks)batch import
:Search Foundations/Mapping>deprecationTeam:Search Foundationshelp wanted

Repository metrics

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

Description

In addition to term-based queries, we currently support prefix, regex, and wildcard queries on certain metadata fields like _ignored and _routing. It’s not clear that supporting these additional query types is useful, and it limits how we’re able to store these fields. As an example, _id fields do not support these queries, and we’re able to encode them using a flexible scheme.

Unless they're actively used, we should consider deprecating + eventually removing support for these query types.

Relates to #34089, where the discussion first arose.

Contributor guide