# How to design dynamic embeded mapping

**URL:** <https://discuss.elastic.co/t/how-to-design-dynamic-embeded-mapping/17906>\
**Category:** Elasticsearch\
**Created:** [June 4, 2014, 1:10pm UTC](https://discuss.elastic.co/t/how-to-design-dynamic-embeded-mapping/17906 "2014-06-04T13:10:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asoqa](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@asoqa](https://discuss.elastic.co/u/asoqa)\
**Post date:** [June 4, 2014, 1:10pm UTC](https://discuss.elastic.co/t/how-to-design-dynamic-embeded-mapping/17906/1 "2014-06-04T13:10:57Z")

</div>

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/0ef8a8b9-77df-4b7c-bc6d-6133a0be587f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:24am UTC](https://discuss.elastic.co/t/how-to-design-dynamic-embeded-mapping/17906/2 "2017-07-06T01:24:43Z")

</div>

Closed on July 6, 2017, 1:24am UTC


