Max_bytes_length_exceeded_exception Reason

error =>

index returned 400 _index: _doc _id: 20142 _version: 0 error: Type: illegal_argument_exception Reason: "Document contains at least one immense term in field="form" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[97, 104, 109, 101, 100, 32, 97, 98, 100, 101, 108, 107, 104, 97, 108, 101, 107, 32, 115, 111, 104, 97, 103, 32, 103, 105, 114, 103, 97, 32]...', original message: bytes can be at most 32766 in length; got 189342" CausedBy: "Type: max_bytes_length_exceeded_exception Reason: "bytes can be at most 32766 in length; got 189342""

PUT bug_reports
{
"mappings": {
"properties": {
"title": {
"type": "text"
},
"form": {
"type": "flattened"
}
}
}
}

try to index form with large data
POST bug_reports/_doc/1
{
"title": "Results are not sorted correctly.",
"labels": {
"priority": "urgent",
"reason": "with large string ...........",
}
}

if used ignore above cannot make search using prefix query.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.