请参阅下面的部分json文件:
'audience': {
'targeting': {
'8': {
'updated_at': '2012-03-05T19:55:08Z',
'targeting_value': 'deals',
'id': 'aiiy',
'line_item_id': '1569',
'account_id': 'xxxx',
'deleted': False,
'created_at': '2012-03-05T19:55:08Z',
'name': 'deals',
'targeting_type': 'UNORDERED_KEYWORD'
},
'2': {
'updated_at': '2012-03-05T19:55:08Z',
'targeting_value': 'money',
'id': 'aiis',
'line_item_id': '1569',
'account_id': 'yyyyy',
'deleted': False,
'created_at': '2012-03-05T19:55:08Z',
'name': 'money',
'targeting_type': 'UNORDERED_KEYWORD'
}
当我尝试在elasticsearch中插入完整的json时,上面是json文件的一部分我得到如下。任何帮助。
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.RequestError: TransportError(400, 'mapper_parsing_exception', 'failed to parse [ad_audience:targeting:8:targeting_value]')