# ElasticSearch accpeting all the fields as string

**URL:** <https://discuss.elastic.co/t/elasticsearch-accpeting-all-the-fields-as-string/61009>\
**Category:** Elasticsearch\
**Created:** [September 20, 2016, 11:28am UTC](https://discuss.elastic.co/t/elasticsearch-accpeting-all-the-fields-as-string/61009 "2016-09-20T11:28:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 20, 2016, 12:16pm UTC](https://discuss.elastic.co/t/elasticsearch-accpeting-all-the-fields-as-string/61009/2 "2016-09-20T12:16:09Z")

</div>

You need to define your mapping first before inserting the first document. If you did and if it still does not work, it's because you did something wrong.  
If so, provide all the steps as described at [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21)

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-accpeting-all-the-fields-as-string/61009)._
