# How to define the mapping

**URL:** <https://discuss.elastic.co/t/how-to-define-the-mapping/211646>\
**Category:** Elasticsearch\
**Created:** [December 12, 2019, 12:27pm UTC](https://discuss.elastic.co/t/how-to-define-the-mapping/211646 "2019-12-12T12:27:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kguru08](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kguru08](https://discuss.elastic.co/u/kguru08)\
**Post date:** [December 12, 2019, 12:27pm UTC](https://discuss.elastic.co/t/how-to-define-the-mapping/211646/1 "2019-12-12T12:27:53Z")

</div>

Hi,

Please find the below structure of my JSON,

{  
"book": "testing\_mine",  
"res\_info": {  
"en": {  
"author": "guru"  
},  
"jp": {  
"author": "達人"  
},  
"tamil": {  
"author": "குரு"  
}  
}  
}

I need to create a mapping for the above JSON, the author filed is common but the language(en, jp, Tamil etc.,) object is changing. So please help how to create a mapping.

---

<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 9, 2020, 12:27pm UTC](https://discuss.elastic.co/t/how-to-define-the-mapping/211646/2 "2020-01-09T12:27:58Z")

</div>

Closed on January 9, 2020, 12:27pm UTC

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