How to design dynamic embeded mapping

I have a mindmap json , as follows:

{
"root": {
"id": "cpkbvyde",
"text": "My Mind Map",
"layout": "map",
"children": [
{
"id": "lqlpxqim",
"text": "a",
"side": "right",
"children": [
{
"id": "uzgocffn",
"text": "1",
"value": 1
}
]
},
{
"id": "bjmbsize",
"text": "b",
"side": "left"
}
]
},
"id": "nztlnuln"
}

As you know, mind map files have uncertain levels of childrens. If I 

want to create a mapper according to the json , how do i design the mapper?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0ef8a8b9-77df-4b7c-bc6d-6133a0be587f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.