java意外endofinput:数组ElasticSearch需要关闭标记
我正在创建对弹性搜索的批量请求,但得到了标题中指定的错误 有人能查一下我的JSON吗也许这不对
{ "index" :{ "_index" : "type", "_type" : "type", "_id" : "1" }}
{"type": "Variable", "processDefinitionKey":"Variable1", "products":[
{ "index" :{ "_index" : "new_type", "_type" : "new_type", "_id" : "1" }}
{ "code": "20", "type": "Variable", "name": "Integer"}]}
# 1 楼答案
实际上,问题是文档似乎被分成了第2行和第4行,而且两行都不完整
你的文件实际上是这样的
再加上这个
但是它被分成两行,中间有
index
个命令。。。那不行它应该是这样的:
你需要确保: