diff --git a/docs/reference/mapping/params/ignore-malformed.asciidoc b/docs/reference/mapping/params/ignore-malformed.asciidoc index 656b679ffe9eb..9ea5be72bdb28 100644 --- a/docs/reference/mapping/params/ignore-malformed.asciidoc +++ b/docs/reference/mapping/params/ignore-malformed.asciidoc @@ -7,7 +7,7 @@ user may send a `login` field that is a <>, and another sends a Trying to index the wrong datatype into a field throws an exception by default, and rejects the whole document. The `ignore_malformed` parameter, if -set to `true`, allows the exception to be ignored. The malformed field is not +set to `true`, allows the exception to be ignored. The malformed field is not indexed, but other fields in the document are processed normally. For example: @@ -46,15 +46,24 @@ PUT my_index/_doc/2 <1> This document will have the `text` field indexed, but not the `number_one` field. <2> This document will be rejected because `number_two` does not allow malformed values. +The `ignore_malformed` setting is currently supported by the following <>: + +<>:: `long`, `integer`, `short`, `byte`, `double`, `float`, `half_float`, `scaled_float` +<>:: `date` +<>:: `date_nanos` +<>:: `geo_point` for lat/lon points +<>:: `geo_shape` for complex shapes like polygons +<>:: `ip` for IPv4 and IPv6 addresses + TIP: The `ignore_malformed` setting value can be updated on existing fields using the <>. - [[ignore-malformed-setting]] ==== Index-level default The `index.mapping.ignore_malformed` setting can be set on the index level to -allow to ignore malformed content globally across all mapping types. +ignore malformed content globally across all allowed mapping types. +Mapping types that don't support the setting will ignore it if set on the index level. [source,console] --------------------------------------------------