OpenSearch/modules
Alan Woodward 18663b0a85 Don't index ranges including NOW in percolator (#52748)
Currently, date ranges queries using NOW-based date math are rewritten to
MatchAllDocs queries when being preprocessed for the percolator. However,
since we added the verification step, this can result in incorrect matches when
percolator queries are run without scores. This commit changes things to instead
wrap date queries that use NOW with a new DateRangeIncludingNowQuery.
This is a simple wrapper query that returns its delegate at rewrite time, but it can
be detected by the percolator QueryAnalyzer and be dealt with accordingly.

This also allows us to remove a method on QueryRewriteContext, and push all
logic relating to NOW-based ranges into the DateFieldMapper.

Fixes #52617
2020-02-25 12:18:16 +00:00
..
aggs-matrix-stats Rename MapperService#fullName to fieldType. 2020-02-07 10:35:53 -08:00
analysis-common Single instance of the IndexNameExpressionResolver (#52604) 2020-02-21 07:50:02 -07:00
ingest-common RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
ingest-geoip Allow list of IPs in geoip ingest processor (#49573) (#49947) 2019-12-07 00:19:09 +01:00
ingest-user-agent Mute ‘test user agent processor with non-ECS schema’ 2020-02-12 10:27:18 -05:00
lang-expression Upgrade Lucene to 8.5.0-snapshot-b01d7cb (#52584) 2020-02-21 10:25:03 +00:00
lang-mustache RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
lang-painless Correct boost calculation in script_score query (#52478) (#52724) 2020-02-24 13:48:21 -05:00
mapper-extras Upgrade Lucene to 8.5.0-snapshot-b01d7cb (#52584) 2020-02-21 10:25:03 +00:00
parent-join Add a cluster setting to disallow expensive queries (#51385) (#52279) 2020-02-12 22:56:14 +01:00
percolator Don't index ranges including NOW in percolator (#52748) 2020-02-25 12:18:16 +00:00
rank-eval RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
reindex Return 429 status code on read_only_allow_delete index block (#50166) 2020-02-22 16:24:25 +01:00
repository-url Remove Unused Single Delete in BlobStoreRepository (#50024) (#50123) 2019-12-12 11:17:46 +01:00
systemd Single instance of the IndexNameExpressionResolver (#52604) 2020-02-21 07:50:02 -07:00
tasks Deprecate creation of dot-prefixed index names except for hidden and system indices (#49959) 2020-01-28 10:01:16 -07:00
transport-netty4 Fix compilation error 2020-02-20 14:39:44 +00:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00