# Different documents (different structs) in the same \_type

**URL:** <https://discuss.elastic.co/t/different-documents-different-structs-in-the-same--type/47052>\
**Category:** Elasticsearch\
**Created:** [April 11, 2016, 10:39pm UTC](https://discuss.elastic.co/t/different-documents-different-structs-in-the-same--type/47052 "2016-04-11T22:39:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![borja\_pr](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@borja\_pr](https://discuss.elastic.co/u/borja_pr)\
**Post date:** [April 11, 2016, 10:39pm UTC](https://discuss.elastic.co/t/different-documents-different-structs-in-the-same--type/47052/1 "2016-04-11T22:39:26Z")

</div>

Can I store different documents with different fields under the same \_type in a index?

---

<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:** [April 12, 2016, 4:47am UTC](https://discuss.elastic.co/t/different-documents-different-structs-in-the-same--type/47052/2 "2016-04-12T04:47:12Z")

</div>

You can, you shouldn't - [https://www.elastic.co/blog/index-vs-type](https://www.elastic.co/blog/index-vs-type)

---

<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:00pm UTC](https://discuss.elastic.co/t/different-documents-different-structs-in-the-same--type/47052/3 "2017-07-05T23:00:27Z")

</div>


