OpenSearch/plugins
Alan Woodward 18bfbeda29 Move merge compatibility logic from MappedFieldType to FieldMapper (#56915)
Merging logic is currently split between FieldMapper, with its merge() method, and
MappedFieldType, which checks for merging compatibility. The compatibility checks
are called from a third class, MappingMergeValidator. This makes it difficult to reason
about what is or is not compatible in updates, and even what is in fact updateable - we
have a number of tests that check compatibility on changes in mapping configuration
that are not in fact possible.

This commit refactors the compatibility logic so that it all sits on FieldMapper, and
makes it called at merge time. It adds a new FieldMapperTestCase base class that
FieldMapper tests can extend, and moves the compatibility testing machinery from
FieldTypeTestCase to here.

Relates to #56814
2020-05-20 09:43:13 +01:00
..
analysis-icu Move merge compatibility logic from MappedFieldType to FieldMapper (#56915) 2020-05-20 09:43:13 +01:00
analysis-kuromoji upgrade to Lucene 8.6.0 snapshot (#56661) 2020-05-13 14:25:16 +02:00
analysis-nori upgrade to Lucene 8.6.0 snapshot (#56661) 2020-05-13 14:25:16 +02:00
analysis-phonetic upgrade to Lucene 8.6.0 snapshot (#56661) 2020-05-13 14:25:16 +02:00
analysis-smartcn upgrade to Lucene 8.6.0 snapshot (#56661) 2020-05-13 14:25:16 +02:00
analysis-stempel upgrade to Lucene 8.6.0 snapshot (#56661) 2020-05-13 14:25:16 +02:00
analysis-ukrainian upgrade to Lucene 8.6.0 snapshot (#56661) 2020-05-13 14:25:16 +02:00
discovery-azure-classic Enforce strict license distribution requirements (#56642) 2020-05-14 13:57:56 -07:00
discovery-ec2 Test adjustments for FIPS 140 (#56526) 2020-05-15 18:10:45 +03:00
discovery-gce [7.x] Lazy test cluster module and plugins (#54852) (#55087) 2020-04-13 10:53:35 -05:00
examples Merge significant_terms into the terms package (backport of #56699) (#56715) 2020-05-13 17:36:21 -04:00
ingest-attachment Test adjustments for FIPS 140 (#56526) 2020-05-15 18:10:45 +03:00
mapper-annotated-text Move merge compatibility logic from MappedFieldType to FieldMapper (#56915) 2020-05-20 09:43:13 +01:00
mapper-murmur3 Move merge compatibility logic from MappedFieldType to FieldMapper (#56915) 2020-05-20 09:43:13 +01:00
mapper-size Move merge compatibility logic from MappedFieldType to FieldMapper (#56915) 2020-05-20 09:43:13 +01:00
repository-azure Track GET/LIST Azure Storage API calls (#56937) 2020-05-19 13:49:23 +02:00
repository-gcs Track upload requests on S3 repositories (#56904) 2020-05-18 19:05:17 +02:00
repository-hdfs [7.x] Lazy test cluster module and plugins (#54852) (#55087) 2020-04-13 10:53:35 -05:00
repository-s3 Track upload requests on S3 repositories (#56904) 2020-05-18 19:05:17 +02:00
store-smb [7.x] Optimize which Rest resources are used by the Rest tests… (#53766) 2020-03-19 12:28:59 -05:00
transport-nio Create HttpRequest earlier in pipeline (#56393) 2020-05-18 14:54:01 -06:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00