How to insert the following JSON nested array abject into Elasticsearch index named "index_19_7_16"?
{
"hour": [
{
"time": "00:00",
"master_id": [
{
"m.id": 111,
"m.value": 222
},
{
"m.id": 113,
"m.value": 444
}
],
"child_id": [
{
"c.id": 77,
"c.value": 222
},
{
"c.id": 7751,
"c.value": 444
}
]
},
{
"time": "01:00",
"master_id": [
{
"m.id": 111,
"m.value": 222
},
{
"m.id": 113,
"m.value": 444
}
],
"child_id": [
{
"c.id": 77,
"c.value": 222
},
{
"c.id": 7751,
"c.value": 444
}
]
}
]
}
Do I need to created mapping before or just insert the JSON dynamically into elastic index.