OpenSearch/server
Christoph Büscher 15f95a9f93
Fix `range` queries on `_type` field for singe type indices (#31756)
With the introduction of single types in 6.x, the `_type` field is no longer
indexed, which leads to certain queries that were working before throw errors
now. One such query is the `range` query, that, if performed on a single typer
index, currently throws an IAE since the field is not indexed.
This change adds special treatment for this case in the TypeFieldMapper,
comparing the range queries lower and upper bound to the one existing type and
either returns a MatchAllDocs or a MatchNoDocs query.

Relates to #31632
Closes #31476
2018-07-18 09:12:28 +02:00
..
licenses Upgrade to Lucene 7.4.0. (#31529) 2018-06-22 16:17:17 +02:00
src Fix `range` queries on `_type` field for singe type indices (#31756) 2018-07-18 09:12:28 +02:00
build.gradle Build: Make additional test deps of check (#32015) 2018-07-17 13:14:46 -07:00