I executed this query.
POST /dev/items/1230
{
"item_name" : " this includes LF code
"
}
error happens and error message is as below.
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "failed to parse [item_name]"
}
],
"type": "mapper_parsing_exception",
"reason": "failed to parse [item_name]",
"caused_by": {
"type": "json_parse_exception",
"reason": "Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\n at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@2bf9746b; line: 2, column: 29]"
}
},
"status": 400
}
When I escape LF as \n or CR as \r, it's registered as string "\n" or string "\r".
Can elasticsearch not register LF and CR??
ES version : 5.1.1