# Should i keep different types of documents in different indexes?

**URL:** <https://discuss.elastic.co/t/should-i-keep-different-types-of-documents-in-different-indexes/12899>\
**Category:** Elasticsearch\
**Created:** [July 23, 2013, 1:09pm UTC](https://discuss.elastic.co/t/should-i-keep-different-types-of-documents-in-different-indexes/12899 "2013-07-23T13:09:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)\
**Post date:** [July 23, 2013, 1:09pm UTC](https://discuss.elastic.co/t/should-i-keep-different-types-of-documents-in-different-indexes/12899/1 "2013-07-23T13:09:31Z")

</div>

Hello,  
I have single server ES installation. There are 2 types of documents. First  
type is relatively small subset of the data, the second type is huge  
amount, but in most cases I run queries against the 1st type, and rarely  
against the 2nd. So, my index is huge just because the data I rarely use. I  
was thinking to separate those 2 types into different indexes to increase  
performance of my application, but assuming those indexes will be running  
on the same ES, does it make sense at all? Any other suggestions?  
Thank you,  
Eugene

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [July 23, 2013, 10:42pm UTC](https://discuss.elastic.co/t/should-i-keep-different-types-of-documents-in-different-indexes/12899/2 "2013-07-23T22:42:13Z")

</div>

It makes perfect sense to separate the indexes. You can change certain  
values per index such as the number of shards, replicas (not needed in your  
case) and cache settings. You could also reindex all the documents of the  
first type faster if you needed to.

--  
Ivan

On Tue, Jul 23, 2013 at 6:09 AM, Eugene Strokin [eugene@strokin.info](mailto:eugene@strokin.info) wrote:

> Hello,  
> I have single server ES installation. There are 2 types of documents.  
> First type is relatively small subset of the data, the second type is huge  
> amount, but in most cases I run queries against the 1st type, and rarely  
> against the 2nd. So, my index is huge just because the data I rarely use. I  
> was thinking to separate those 2 types into different indexes to increase  
> performance of my application, but assuming those indexes will be running  
> on the same ES, does it make sense at all? Any other suggestions?  
> Thank you,  
> Eugene
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:24am UTC](https://discuss.elastic.co/t/should-i-keep-different-types-of-documents-in-different-indexes/12899/3 "2017-07-06T02:24:54Z")

</div>


