OpenSearch/modules
Luca Cavanna 862fab06d3
Share same existsQuery impl throughout mappers (#57607)
Most of our field types have the same implementation for their `existsQuery` method which relies on doc_values if present, otherwise it queries norms if available or uses a term query against the _field_names meta field. This standard implementation is repeated in many different mappers.

There are field types that only query doc_values, because they always have them, and field types that always query _field_names, because they never have norms nor doc_values. We could apply the same standard logic to all of these field types as `MappedFieldType` has the knowledge about what data structures are available.

This commit introduces a standard implementation that does the right thing depending on the data structure that is available. With that only field types that require a different behaviour need to override the existsQuery method.

At the same time, this no longer forces subclasses to override `existsQuery`, which could be forgotten when needed. To address this we introduced a new test method in `MapperTestCase` that verifies the `existsQuery` being generated and its consistency with the available data structures.
2020-09-23 11:00:53 +02:00
..
aggs-matrix-stats Only call reduce on a single InternalAggregation when needed (#62525) (#62594) 2020-09-18 08:43:58 +02:00
analysis-common Do not create two loggers for DeprecationLogger backport(#58435) (#61530) 2020-08-26 16:04:02 +02:00
geo Add search `fields` parameter to support high-level field retrieval. (#60258) 2020-07-28 10:58:20 -07:00
ingest-common [7.x] Make for each processor resistant to field modification (#62791) (#62807) 2020-09-23 10:46:00 +02:00
ingest-geoip Replace immediate task creations by using task avoidance api (#60071) (#60504) 2020-07-31 13:09:04 +02:00
ingest-user-agent Do not create two loggers for DeprecationLogger backport(#58435) (#61530) 2020-08-26 16:04:02 +02:00
kibana Simplify adding plugins and modules to testclusters (#61886) 2020-09-03 19:37:46 -07:00
lang-expression Upgrade to lucene-8.7.0-snapshot-830bd186a8d. (#62596) 2020-09-18 09:51:34 +02:00
lang-mustache Support point in time in async_search (#61560) 2020-09-10 19:25:48 -04:00
lang-painless Backport all Painless compiler extensibility changes (#61755) 2020-09-16 09:32:00 -07:00
mapper-extras Share same existsQuery impl throughout mappers (#57607) 2020-09-23 11:00:53 +02:00
parent-join Share same existsQuery impl throughout mappers (#57607) 2020-09-23 11:00:53 +02:00
percolator Share same existsQuery impl throughout mappers (#57607) 2020-09-23 11:00:53 +02:00
rank-eval Simplify adding plugins and modules to testclusters (#61886) 2020-09-03 19:37:46 -07:00
reindex [TEST] Mute DeleteByQueryConcurrentTests.testConcurrentDeleteByQueriesOnDifferentDocs 2020-09-21 09:34:59 +01:00
repository-url [7.x] Introduce javaRestTest source set/task and convert modules (#59939) (#60026) 2020-07-28 08:39:11 -05:00
systemd [7.x] Remove integTest task from PluginBuildPlugin (#61879) (#62135) 2020-09-09 14:25:41 -05:00
transport-netty4 Log alloc description after netty processors set (#62741) 2020-09-21 19:52:51 -06:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00