OpenSearch/plugins/mapper-murmur3/src
Adrien Grand aa6cd93e0f Require arguments for QueryShardContext creation. (#21196)
The `IndexService#newQueryShardContext()` method creates a QueryShardContext on
shard `0`, with a `null` reader and that uses `System.currentTimeMillis()` to
resolve `now`. This may hide bugs, since the shard id is sometimes used for
query parsing (it is used to salt random score generation in `function_score`),
passing a `null` reader disables query rewriting and for some use-cases, it is
simply not ok to rely on the current timestamp (eg. percolation). So this pull
request removes this method and instead requires that all call sites provide
these parameters explicitly.
2016-11-02 09:48:49 +01:00
..
main/java/org/elasticsearch GET operations should not extract fields from `_source`. #20158 2016-08-26 10:35:23 +02:00
test Require arguments for QueryShardContext creation. (#21196) 2016-11-02 09:48:49 +01:00