# How to mapping in nest constructure

**URL:** <https://discuss.elastic.co/t/how-to-mapping-in-nest-constructure/68115>\
**Category:** Elasticsearch\
**Created:** [December 6, 2016, 1:23am UTC](https://discuss.elastic.co/t/how-to-mapping-in-nest-constructure/68115 "2016-12-06T01:23:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![E1astic](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@E1astic](https://discuss.elastic.co/u/E1astic)\
**Post date:** [December 6, 2016, 1:23am UTC](https://discuss.elastic.co/t/how-to-mapping-in-nest-constructure/68115/1 "2016-12-06T01:23:00Z")

</div>

My data structure is

```auto
{
   eventData :{
      level:6,
     class:beginner
   }
}

```

or

```auto
{
   eventData :{
      level:6,
     money:1000
   }
}

```

Please tell me how to mapping on this structure.  
`eventData` have various constructure so we cannot make mapping when we make index.

Thank you.

---

<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:** [January 3, 2017, 1:23am UTC](https://discuss.elastic.co/t/how-to-mapping-in-nest-constructure/68115/2 "2017-01-03T01:23:12Z")

</div>

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