elasticsearch/x-pack/plugin/mapper-version
Alan Woodward 4e1fb3fca5
Automatically disable `ignore_malformed` on datastream `@timestamp` fields (#99346)
Data-stream mappings require a @timestamp field to be present and configured
as a date with a specific set of parameters. The index-wide setting of
ignore_malformed can cause problems here if it is set to true, because it needs
to be false for the @timestamp field.

This commit detects if a set of mappings is configured for a datastream by checking
for the presence of a DataStreamTimestampFieldMapper metadata field, and passes
that information on during Mapper construction as part of the MapperBuilderContext.
DateFieldMapper.Builder now checks to see if it is specifically for a data stream timestamp
field, and if it is, sets ignore_malformed to false.

Relates to #96051
2023-09-13 15:02:22 +01:00
..
src Automatically disable `ignore_malformed` on datastream `@timestamp` fields (#99346) 2023-09-13 15:02:22 +01:00
build.gradle Update Gradle Wrapper to 8.2 (#96686) 2023-07-04 15:35:15 +02:00