# How to convert Avro Schema to Elastic Search Mapping?

**URL:** <https://discuss.elastic.co/t/how-to-convert-avro-schema-to-elastic-search-mapping/114749>\
**Category:** Elasticsearch\
**Created:** [January 9, 2018, 8:00pm UTC](https://discuss.elastic.co/t/how-to-convert-avro-schema-to-elastic-search-mapping/114749 "2018-01-09T20:00:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kant\_kodali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kant_kodali/32/50637_2.png) [@kant\_kodali](https://discuss.elastic.co/u/kant_kodali)\
**Post date:** [January 9, 2018, 8:00pm UTC](https://discuss.elastic.co/t/how-to-convert-avro-schema-to-elastic-search-mapping/114749/1 "2018-01-09T20:00:05Z")

</div>

How to convert Avro Schema to Elastic Search Mapping? I have Avro records in Kafka and I want to insert these records into Elastic search in JSON so I can read and also query them but before I do that I want to create a mapping for my records. I have Avro schema and I am wondering the easiest way to convert that into ElasticSearch Mapping?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 9, 2018, 10:08pm UTC](https://discuss.elastic.co/t/how-to-convert-avro-schema-to-elastic-search-mapping/114749/2 "2018-01-09T22:08:31Z")

</div>

What does the avro schema look like?

---

<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:** [February 6, 2018, 10:08pm UTC](https://discuss.elastic.co/t/how-to-convert-avro-schema-to-elastic-search-mapping/114749/3 "2018-02-06T22:08:32Z")

</div>

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