Object in arrays are not well supported Error


(Dhivya) #1

Hi Team

I have upload a JSON file to the elastic and in below data format, "which has a list of dict", After uploading to elastic we see error as "Object in arrays are not well supported" and data is not mapped properly, everything is tagged as one object.

refered: https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html

I tried with mapping as "nested" but still it did not help, Please correct if I am missing something?

data in json:
{"index" : {"_index": "packets", "_type": "pcap_file"}}
{"timestamp" : "1315294917923", "layers" : {"data": [{"type": "8","seq": "1"},{"fixed_value": "","fixed_timestamp": "0x000000000001"}]}}

Mapping file:
{
"template" : "packet*",
"settings" : {
"index.mapping.total_fields.limit": 3000
},
"mappings": {
"pcap_file": {
"layers": {
"properties": {
"data": {
"type": "nested"
}
}
}
}
}
}
}

Any inputs would be of great help


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.