# Types in segments

**URL:** <https://discuss.elastic.co/t/types-in-segments/17498>\
**Category:** Elasticsearch\
**Created:** [May 14, 2014, 2:57am UTC](https://discuss.elastic.co/t/types-in-segments/17498 "2014-05-14T02:57:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_Nalya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anand_nalya/32/571_2.png) [@Anand\_Nalya](https://discuss.elastic.co/u/Anand_Nalya)\
**Post date:** [May 14, 2014, 2:57am UTC](https://discuss.elastic.co/t/types-in-segments/17498/1 "2014-05-14T02:57:36Z")

</div>

Hi,

Are documents of different mappings in an index stored in different  
segments or a single segment can contain documents of different types. Is  
\_type the only way of differentiating the type of an documents?

Regards,  
Anand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/98b6703e-2e03-4ee5-b81f-4a383e34b95f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/98b6703e-2e03-4ee5-b81f-4a383e34b95f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [May 14, 2014, 1:58pm UTC](https://discuss.elastic.co/t/types-in-segments/17498/2 "2014-05-14T13:58:41Z")

</div>

A single segment can contain documents of different \_type's in a single  
index. The \_type is just a field inside the document.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/aeb2868b-0eeb-4565-8b22-eff058e12a07%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/aeb2868b-0eeb-4565-8b22-eff058e12a07%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Amit\_Assudani](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Amit\_Assudani](https://discuss.elastic.co/u/Amit_Assudani)\
**Post date:** [May 21, 2014, 9:27am UTC](https://discuss.elastic.co/t/types-in-segments/17498/3 "2014-05-21T09:27:20Z")

</div>

Does delete type (mapping) also ensures all the documents associated with  
that type gets deleted ?

On Wednesday, May 14, 2014 6:58:41 AM UTC-7, Binh Ly wrote:

> A single segment can contain documents of different \_type's in a single  
> index. The \_type is just a field inside the document.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9a8fa258-1724-4175-928c-7af2b7d2b7e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9a8fa258-1724-4175-928c-7af2b7d2b7e8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:27am UTC](https://discuss.elastic.co/t/types-in-segments/17498/4 "2017-07-06T01:27:54Z")

</div>


