Is it possible to have dynamic mapping for a nested object like the following -
employee
{
"id":"1",
"name":"manager",
"assistants":[
{
"id":"2",
"name":"assistant1"
},
{
"id":"3",
"name":"assistant2"
}
]
}
I am not defining any dynamic mapping template or custom mapping for my index. I want Elastic search to automatically recognize the nested structure when i index this json and form the mapping as the following so that i can use nested query on these documents
assistants : { "type":"nested"}