Skip to content

Commit 3e61dd1

Browse files
committed
[DOCS] Document limits for JSON objects with ignore_malformed mapping setting (#40976)
1 parent fb23e1a commit 3e61dd1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/reference/mapping/params/ignore-malformed.asciidoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,16 @@ become meaningless. Elasticsearch makes it easy to check how many documents
9191
have malformed fields by using `exist` or `term` queries on the special
9292
<<mapping-ignored-field,`_ignored`>> field.
9393

94+
==== Limits for JSON Objects
95+
You can't use `ignore_malformed` with the following datatypes:
96+
97+
* <<nested, Nested datatype>>
98+
* <<object, Object datatype>>
99+
* <<range, Range datatypes>>
100+
101+
You also can't use `ignore_malformed` to ignore JSON objects submitted to fields
102+
of the wrong datatype. A JSON object is any data surrounded by curly brackets
103+
`"{}"` and includes data mapped to the nested, object, and range datatypes.
104+
105+
If you submit a JSON object to an unsupported field, {es} will return an error
106+
and reject the entire document regardless of the `ignore_malformed` setting.

0 commit comments

Comments
 (0)