-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Clarify mapping types that support ignore_malformed #48206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The `ignore_malformed` setting only works on selected mapping types, otherwise we throw an mapper_parsing_exception. We should add a list of all the mapping types that support it, since the number of types not supporting it seems larger. Closes elastic#47166
Pinging @elastic/es-docs (>docs) |
Pinging @elastic/es-search (:Search/Mapping) |
[[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. | ||
allow to ignore malformed content globally across all mapping types that allow it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allow to ignore malformed content globally across all mapping types that allow it. | |
to ignore malformed content globally across all allowed mapping types. |
* <<number>>:: `long`, `integer`, `short`, `byte`, `double`, `float`, `half_float`, `scaled_float` | ||
* <<date>>:: `date` | ||
* <<date_nanos>>:: `date_nanos` | ||
* <<geo-point>>:: `geo_point` for lat/lon points | ||
* <<geo-shape>>:: `geo_shape` for complex shapes like polygons | ||
* <<ip>>:: `ip` for IPv4 and IPv6 addresses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't render properly in the output:
If you want a bulleted list, you can try this instead (note the added new line):
The `ignore_malformed` setting is currently supported by the following <<mapping-types,mapping types>>:
* <<number>>: `long`, `integer`, `short`, `byte`, `double`, `float`, `half_float`, `scaled_float`
* <<date>>: `date`
* <<date_nanos>>: `date_nanos`
* <<geo-point>>: `geo_point` for lat/lon points
* <<geo-shape>>: `geo_shape` for complex shapes like polygons
* <<ip>>: `ip` for IPv4 and IPv6 addresses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. I left one comment about a needed formatting fix.
The `ignore_malformed` setting only works on selected mapping types, otherwise we throw an mapper_parsing_exception. We should add a list of all the mapping types that support it, since the number of types not supporting it seems larger. Closes #47166
The `ignore_malformed` setting only works on selected mapping types, otherwise we throw an mapper_parsing_exception. We should add a list of all the mapping types that support it, since the number of types not supporting it seems larger. Closes #47166
The `ignore_malformed` setting only works on selected mapping types, otherwise we throw an mapper_parsing_exception. We should add a list of all the mapping types that support it, since the number of types not supporting it seems larger. Closes #47166
The
ignore_malformed
setting only works on selected mapping types, otherwisewe throw an mapper_parsing_exception. We should add a list of all the mapping
types that support it, since the number of types not supporting it seems larger.
Closes #47166