# Mappings

**URL:** <https://discuss.elastic.co/t/mappings/67122>\
**Category:** Elasticsearch\
**Created:** [November 24, 2016, 2:39pm UTC](https://discuss.elastic.co/t/mappings/67122 "2016-11-24T14:39:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tue\_Topholm](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Tue\_Topholm](https://discuss.elastic.co/u/Tue_Topholm)\
**Post date:** [November 24, 2016, 2:39pm UTC](https://discuss.elastic.co/t/mappings/67122/1 "2016-11-24T14:39:06Z")

</div>

Hi All,

I just have a quick question I couldn't find an answer for regarding mappings.

If I map "bytes" to a int, and then I insert the following json:

{  
"name":"test",  
"data": {"bytes":"dummy"}  
}

will the bytes in data also inherit the int or will it see it as data.bytes as a new field and map it as string. or will it generate a conflict because I mapped bytes to int.

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [November 25, 2016, 2:57pm UTC](https://discuss.elastic.co/t/mappings/67122/2 "2016-11-25T14:57:31Z")

</div>

data.bytes will be a new field, mapped as a string.

---

<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:** [December 23, 2016, 2:57pm UTC](https://discuss.elastic.co/t/mappings/67122/3 "2016-12-23T14:57:42Z")

</div>

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