# Get N number of feeds of each type

**URL:** <https://discuss.elastic.co/t/get-n-number-of-feeds-of-each-type/12311>\
**Category:** Elasticsearch\
**Created:** [June 7, 2013, 4:51am UTC](https://discuss.elastic.co/t/get-n-number-of-feeds-of-each-type/12311 "2013-06-07T04:51:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ban\_Mido](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Ban\_Mido](https://discuss.elastic.co/u/Ban_Mido)\
**Post date:** [June 7, 2013, 4:51am UTC](https://discuss.elastic.co/t/get-n-number-of-feeds-of-each-type/12311/1 "2013-06-07T04:51:13Z")

</div>

Hi ,

In my index , i have a field called Type.  
For values X,Y,Z of field Type , i need N elements each.  
What would be the best way to achieve this ?

~Ban

--  
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:32am UTC](https://discuss.elastic.co/t/get-n-number-of-feeds-of-each-type/12311/2 "2017-07-06T02:32:27Z")

</div>

Closed on July 6, 2017, 2:32am UTC


