OpenSearch/modules
Alan Woodward 3d8c2f9e18 Fix query analyzer logic for mixed conjunctions of terms and ranges (#49803)
When the query analyzer examines a conjunction containing both terms and ranges,
it should only include ranges in the minimum_should_match calculation if there are no
other range queries on that same field within the conjunction. This is because we cannot
build a selection query over disjoint ranges on the same field, and it is not easy to check
if two range queries have an overlap.

The current logic to calculate this just sets minimum_should_match to 1 or 0, dependent
on whether or not the current range is over a field that has already been seen. However, this
can be incorrect in the case that there are terms in the same match group which adjust the
minimum_should_match downwards. Instead, the logic should be changed to match the
terms extraction, whereby we adjust minimum_should_match downwards if we have already
seen a range field.

Fixes #49684
2019-12-10 11:01:52 +00:00
..
aggs-matrix-stats Decouple pipeline reductions from final agg reduction (#45796) 2019-12-05 16:11:54 -05:00
analysis-common Scripting: Groundwork for caching script results (#49895) (#49944) 2019-12-06 15:08:05 -07:00
ingest-common Backport: add templating support to pipeline processor (#49643) 2019-11-27 15:53:40 +01:00
ingest-geoip Allow list of IPs in geoip ingest processor (#49573) (#49947) 2019-12-07 00:19:09 +01:00
ingest-user-agent update ingest-user-agent regexes.yml (#47807) 2019-10-18 16:26:48 +02:00
lang-expression Scripting: Groundwork for caching script results (#49895) (#49944) 2019-12-06 15:08:05 -07:00
lang-mustache Scripting: Groundwork for caching script results (#49895) (#49944) 2019-12-06 15:08:05 -07:00
lang-painless Scripting: Groundwork for caching script results (#49895) (#49944) 2019-12-06 15:08:05 -07:00
mapper-extras Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
parent-join Add a cluster setting to disallow loading fielddata on _id field (#49166) 2019-11-28 09:35:28 +01:00
percolator Fix query analyzer logic for mixed conjunctions of terms and ranges (#49803) 2019-12-10 11:01:52 +00:00
rank-eval Add a cluster setting to disallow loading fielddata on _id field (#49166) 2019-11-28 09:35:28 +01:00
reindex Reindex sort deprecation warning take 2 (#49855) (#49899) 2019-12-06 09:44:36 +01:00
repository-url Make BlobStoreRepository Aware of ClusterState (#49639) (#49711) 2019-11-29 14:57:47 +01:00
systemd Extend systemd timeout during startup (#49784) 2019-12-03 14:25:45 -05:00
transport-netty4 Stop Allocating Buffers in CopyBytesSocketChannel (#49825) (#49832) 2019-12-04 19:36:52 +01:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00