elasticsearch/qa/full-cluster-restart
Alan Woodward 2d77ef57cf
Rewrite match and match_phrase queries to term queries on keyword fields (#82612)
Term queries can in certain circumstances (eg when run against constant keyword
fields) rewrite themselves to match_no_docs queries, which is very useful for filtering
out shards from searches and field_caps requests. But match and match_phrase
queries can reduce down to simple term queries when there is no fuzziness defined
on them, and when they are run using a keyword analyzer.

This commit makes simple match and match_phrase rewrite themselves to term
queries when run against keyword fields.

Fixes #82515
2022-01-17 17:02:07 +00:00
..
src/test/java/org/elasticsearch/upgrades Rewrite match and match_phrase queries to term queries on keyword fields (#82612) 2022-01-17 17:02:07 +00:00
build.gradle Reintroduce full index compatible testing of full cluster restart (#82506) 2022-01-13 10:58:13 -08:00