OpenSearch/plugins
Julie Tibshirani 997c73ec17
Correct how field retrieval handles multifields and copy_to. (#61391)
Before when a value was copied to a field through a parent field or `copy_to`,
we parsed it using the `FieldMapper` from the source field. Instead we should
parse it using the target `FieldMapper`. This ensures that we apply the
appropriate mapping type and options to the copied value.

To implement the fix cleanly, this PR refactors the value parsing strategy. Now
instead of looking up values directly, field mappers produce a helper object
`ValueFetcher`. The value fetchers are responsible for almost all aspects of
fetching, including looking up the right paths in the _source.

The PR is fairly big but each commit can be reviewed individually.

Fixes #61033.
2020-08-20 15:53:35 -07:00
..
analysis-icu Correct how field retrieval handles multifields and copy_to. (#61391) 2020-08-20 15:53:35 -07:00
analysis-kuromoji [7.x] Convert most OSS plugins from integTest to [yaml | java]RestTest or internalClusterTest (#59444) (#60343) 2020-07-29 13:06:13 -05:00
analysis-nori [7.x] Convert most OSS plugins from integTest to [yaml | java]RestTest or internalClusterTest (#59444) (#60343) 2020-07-29 13:06:13 -05:00
analysis-phonetic [7.x] Convert most OSS plugins from integTest to [yaml | java]RestTest or internalClusterTest (#59444) (#60343) 2020-07-29 13:06:13 -05:00
analysis-smartcn [7.x] Convert most OSS plugins from integTest to [yaml | java]RestTest or internalClusterTest (#59444) (#60343) 2020-07-29 13:06:13 -05:00
analysis-stempel [7.x] Convert most OSS plugins from integTest to [yaml | java]RestTest or internalClusterTest (#59444) (#60343) 2020-07-29 13:06:13 -05:00
analysis-ukrainian [7.x] Convert most OSS plugins from integTest to [yaml | java]RestTest or internalClusterTest (#59444) (#60343) 2020-07-29 13:06:13 -05:00
discovery-azure-classic Replace immediate task creations by using task avoidance api (#60071) (#60504) 2020-07-31 13:09:04 +02:00
discovery-ec2 Merge test runner task into RestIntegTest (7.x backport) (#60600) 2020-08-04 14:46:32 +02:00
discovery-gce Replace immediate task creations by using task avoidance api (#60071) (#60504) 2020-07-31 13:09:04 +02:00
examples Merge test runner task into RestIntegTest (7.x backport) (#60600) 2020-08-04 14:46:32 +02:00
ingest-attachment Fix the REST FIPS tests (#61001) 2020-08-13 16:23:54 -07:00
mapper-annotated-text Correct how field retrieval handles multifields and copy_to. (#61391) 2020-08-20 15:53:35 -07:00
mapper-murmur3 Correct how field retrieval handles multifields and copy_to. (#61391) 2020-08-20 15:53:35 -07:00
mapper-size Make MetadataFieldMapper extend ParametrizedFieldMapper (#59847) (#60924) 2020-08-11 09:02:28 +01:00
repository-azure [7.x] Convert repository-* from integTest to [yaml | java]RestTest or internalClusterTest (#60085) (#60404) 2020-07-29 11:19:44 -05:00
repository-gcs Remove GCS Bucket Exists Check (#60899) (#60914) 2020-08-11 09:54:27 +02:00
repository-hdfs Remove old test mute code (#61277) 2020-08-19 09:40:59 +01:00
repository-s3 Merge test runner task into RestIntegTest (7.x backport) (#60600) 2020-08-04 14:46:32 +02:00
store-smb [7.x] Convert most OSS plugins from integTest to [yaml | java]RestTest or internalClusterTest (#59444) (#60343) 2020-07-29 13:06:13 -05:00
transport-nio [7.x] Convert most OSS plugins from integTest to [yaml | java]RestTest or internalClusterTest (#59444) (#60343) 2020-07-29 13:06:13 -05:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00