# Understanding elasticsearch and index creation

**URL:** <https://discuss.elastic.co/t/understanding-elasticsearch-and-index-creation/116376>\
**Category:** Elasticsearch\
**Created:** [January 21, 2018, 9:30am UTC](https://discuss.elastic.co/t/understanding-elasticsearch-and-index-creation/116376 "2018-01-21T09:30:30Z")\
**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:** [January 21, 2018, 9:48am UTC](https://discuss.elastic.co/t/understanding-elasticsearch-and-index-creation/116376/2 "2018-01-21T09:48:05Z")

</div>

Fields must have the same type indeed. But documents can have different fields.

What is exactly the problem?

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

---

_[View the full topic](https://discuss.elastic.co/t/understanding-elasticsearch-and-index-creation/116376)._
