# Save data in elasticsearch for all indices without any mapping

**URL:** <https://discuss.elastic.co/t/save-data-in-elasticsearch-for-all-indices-without-any-mapping/72480>\
**Category:** Elasticsearch\
**Created:** [January 23, 2017, 12:39pm UTC](https://discuss.elastic.co/t/save-data-in-elasticsearch-for-all-indices-without-any-mapping/72480 "2017-01-23T12:39:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alkesh26](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@alkesh26](https://discuss.elastic.co/u/alkesh26)\
**Post date:** [January 23, 2017, 12:39pm UTC](https://discuss.elastic.co/t/save-data-in-elasticsearch-for-all-indices-without-any-mapping/72480/1 "2017-01-23T12:39:41Z")

</div>

I have created an [issue](https://github.com/elastic/elasticsearch/issues/22740).

As per the conversation in issue I have to have a mapping. Is it possible to just dump the data into elasticsearch without any mapping and dynamic mapping as false.

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [January 23, 2017, 5:42pm UTC](https://discuss.elastic.co/t/save-data-in-elasticsearch-for-all-indices-without-any-mapping/72480/2 "2017-01-23T17:42:44Z")

</div>

Hi Alkesh26,

No, you cannot dump data into Elasticsearch without a mapping. Elasticsearch has  
to know what format the data is in so that it can be correctly analyzed and  
stored during indexing. Even if you do not provide a mapping, ES will attempt to  
guess as best it can what type each field is.

---

<div class="post-metadata">

**Author:** ![alkesh26](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@alkesh26](https://discuss.elastic.co/u/alkesh26)\
**Post date:** [January 24, 2017, 5:20am UTC](https://discuss.elastic.co/t/save-data-in-elasticsearch-for-all-indices-without-any-mapping/72480/3 "2017-01-24T05:20:17Z")

</div>

Hi Dakrone  
Thanks a lot.

---

<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 21, 2017, 5:20am UTC](https://discuss.elastic.co/t/save-data-in-elasticsearch-for-all-indices-without-any-mapping/72480/4 "2017-02-21T05:20:21Z")

</div>

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