我已经在ElasticSearch中插入了以下JSON文档。在
{
"AppName": "undefined",
"CPUs": 8,
"Errors": 0,
"Forms": 2,
"Group": "Unknown",
"Language": "en-GB",
"UserName": "user.name",
"msgType": "234",
"bent": "{
\"ActiveT\": 6,
\"ErrorM\": \"None\",
\"Except\": \"None\",
\"HadErr\": \"false\",
\"HM\": 62,
\"NHM\": 57,
\"Parameter\": \"14331232706\",
\"ReturnCode\": \"3050\",
\"Severity\": \"info\",
\"Timestamp\": \"Tue July0209: 58: 16NZST2015\",
\"TId\": \"9891319709\",
\"UserInfo\": \"Unknown\",
}"
}
我希望能够使用嵌套在里面的字段来绘制图形,比如HM
,NHM
,ActiveT
等。在
my_indes/my_doc_type/info_id
上面的信息作为JSON文档给出,我使用下面的映射映射映射嵌套的JSON结构bent
。在
我得到以下错误。在
"error" : "ElasticsearchParseException[Failed to parse content to map]; nested: JsonParseException[Unexpected character ('\"' (code 34)): was expecting comma to separate OBJECT entries\n at [Source: org.elasticsearch.common.compress.lzf.LZFCompressedStreamInput@c2f1e8d; line: 122, column: 19]]; ",
"status" : 400
我使用的映射有什么问题?在
目前没有回答
相关问题 更多 >
编程相关推荐