# GUI for generating mapping file

**URL:** <https://discuss.elastic.co/t/gui-for-generating-mapping-file/41645>\
**Category:** Elasticsearch\
**Created:** [February 12, 2016, 5:02pm UTC](https://discuss.elastic.co/t/gui-for-generating-mapping-file/41645 "2016-02-12T17:02:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raunak/32/4446_2.png) [@raunak](https://discuss.elastic.co/u/raunak)\
**Post date:** [February 12, 2016, 5:02pm UTC](https://discuss.elastic.co/t/gui-for-generating-mapping-file/41645/1 "2016-02-12T17:02:52Z")

</div>

I understand from the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html) , a mapping file helps ES understand how to treat fields in a document. Is there an easy to use GUI to create this file? The reason I ask is because its hard to tell which property can be applied to a field without doing trial and error.

raunak

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 12, 2016, 6:37pm UTC](https://discuss.elastic.co/t/gui-for-generating-mapping-file/41645/2 "2016-02-12T18:37:39Z")

</div>

Easiest way: PUT a sample doc in a new index.  
Then GET the generated mapping.

And adapt it as you need.

SENSE might be a good GUI as well.

---

<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 5, 2017, 11:16pm UTC](https://discuss.elastic.co/t/gui-for-generating-mapping-file/41645/3 "2017-07-05T23:16:44Z")

</div>


