Skip to content

Commit 39eba47

Browse files
committed
[DOCS] Document limits for JSON objects with ignore_malformed mapping setting (#40976)
1 parent a77678b commit 39eba47

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
@@ -95,3 +95,16 @@ become meaningless. Elasticsearch makes it easy to check how many documents
9595
have malformed fields by using `exist` or `term` queries on the special
9696
<<mapping-ignored-field,`_ignored`>> field.
9797

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

0 commit comments

Comments
 (0)