我正在尝试使用 elasticsearch bulk api 将多条记录插入索引。我的 JSON 看起来像这样:request json
我\\n
在文档末尾插入了一个新行 ( ),但我仍然得到newline error
.
Error: {
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "The bulk request must be terminated by a newline [\n]"
}
],
"type": "illegal_argument_exception",
"reason": "The bulk request must be terminated by a newline [\n]"
},
"status": 400
}