# Index by Category

**URL:** <https://discuss.elastic.co/t/index-by-category/74644>\
**Category:** Elasticsearch\
**Created:** [February 10, 2017, 11:45am UTC](https://discuss.elastic.co/t/index-by-category/74644 "2017-02-10T11:45:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emrah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emrah/32/17657_2.png) [@Emrah](https://discuss.elastic.co/u/Emrah)\
**Post date:** [February 10, 2017, 11:45am UTC](https://discuss.elastic.co/t/index-by-category/74644/1 "2017-02-10T11:45:24Z")

</div>

Hi there,

I have nearly 1M docs in my index and 4 nodes that performing search and fecthes. Query times low enough to satisfy users but i wonder if i split my index by cateories that i have would i have better performance for queries ?  
Ex : alldocsindex(1M) =\> allcat1index(120k) , allcat2index(70k), allcat3index(100k)...

---

<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:** [February 11, 2017, 12:36am UTC](https://discuss.elastic.co/t/index-by-category/74644/2 "2017-02-11T00:36:33Z")

</div>

What does your doc look like?  
If you have a category field just filter on that.

---

<div class="post-metadata">

**Author:** ![Emrah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emrah/32/17657_2.png) [@Emrah](https://discuss.elastic.co/u/Emrah)\
**Post date:** [February 11, 2017, 12:37pm UTC](https://discuss.elastic.co/t/index-by-category/74644/3 "2017-02-11T12:37:38Z")

</div>

Yes, i already filter by category. But the point that i wanted to ask reducing doc count on index makes any significant difference on performance. For instance i have a property on docs that is "Status" which tells me if the doc is "Active" or "Passive". Mainly i use "Active" docs. So if i split docs by "Active" and "Passive" and create them on two diffrent index does it make any significant difference on performance

---

<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:** [February 11, 2017, 10:45pm UTC](https://discuss.elastic.co/t/index-by-category/74644/4 "2017-02-11T22:45:19Z")

</div>

I wouldn't think so, you'd need to test to be 100% sure.  
But filters are super efficient so I'd stick with that.

---

<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:** [March 11, 2017, 10:45pm UTC](https://discuss.elastic.co/t/index-by-category/74644/5 "2017-03-11T22:45:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
