# If I have multiple doctypes for an index, how does it impact searching and indexing performance?

**URL:** <https://discuss.elastic.co/t/if-i-have-multiple-doctypes-for-an-index-how-does-it-impact-searching-and-indexing-performance/23735>\
**Category:** Elasticsearch\
**Created:** [June 1, 2015, 11:05am UTC](https://discuss.elastic.co/t/if-i-have-multiple-doctypes-for-an-index-how-does-it-impact-searching-and-indexing-performance/23735 "2015-06-01T11:05:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avinash\_Pandey](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Avinash\_Pandey](https://discuss.elastic.co/u/Avinash_Pandey)\
**Post date:** [June 1, 2015, 11:05am UTC](https://discuss.elastic.co/t/if-i-have-multiple-doctypes-for-an-index-how-does-it-impact-searching-and-indexing-performance/23735/1 "2015-06-01T11:05:50Z")

</div>

As of now, in my setup, I have one doctype for every index. I want to  
understand what will happen, lets say, if I push all the documents in one  
index, with different doctypes.

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

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/64e178ec-551a-40de-bb19-0d3aefb8b753%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/64e178ec-551a-40de-bb19-0d3aefb8b753%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [June 1, 2015, 11:32am UTC](https://discuss.elastic.co/t/if-i-have-multiple-doctypes-for-an-index-how-does-it-impact-searching-and-indexing-performance/23735/2 "2015-06-01T11:32:45Z")

</div>

From a lucene context doctypes are indexed together and filtered. So it is  
just like having one big index. If two doc types share the same field name  
then that fields IDF will be for both.

You should test it but it's often OK.  
On Jun 1, 2015 7:06 AM, "Avinash Pandey" [avinashpandey.iitd@gmail.com](mailto:avinashpandey.iitd@gmail.com)  
wrote:

> As of now, in my setup, I have one doctype for every index. I want to  
> understand what will happen, lets say, if I push all the documents in one  
> index, with different doctypes.
> 
> ## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)
> 
> 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/64e178ec-551a-40de-bb19-0d3aefb8b753%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/64e178ec-551a-40de-bb19-0d3aefb8b753%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/64e178ec-551a-40de-bb19-0d3aefb8b753%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/64e178ec-551a-40de-bb19-0d3aefb8b753%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

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/CAPmjWd3V%2BahwKDFVYwQTXwByT5epRY%2BCLF2PBAMO8FR3pFxMLQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd3V%2BahwKDFVYwQTXwByT5epRY%2BCLF2PBAMO8FR3pFxMLQ%40mail.gmail.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, 12:10am UTC](https://discuss.elastic.co/t/if-i-have-multiple-doctypes-for-an-index-how-does-it-impact-searching-and-indexing-performance/23735/3 "2017-07-06T00:10:31Z")

</div>


