# Limit terms facet results by minimum count

**URL:** <https://discuss.elastic.co/t/limit-terms-facet-results-by-minimum-count/9534>\
**Category:** Elasticsearch\
**Created:** [November 2, 2012, 5:57pm UTC](https://discuss.elastic.co/t/limit-terms-facet-results-by-minimum-count/9534 "2012-11-02T17:57:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://discuss.elastic.co/u/Mike)\
**Post date:** [November 2, 2012, 5:57pm UTC](https://discuss.elastic.co/t/limit-terms-facet-results-by-minimum-count/9534/1 "2012-11-02T17:57:51Z")

</div>

Is there a way to limit the terms returned by a terms facet to ones that  
only have a count greater than some number? Size limits the number of  
total terms returned, but I'd like to only get back terms that have a count

> 1.

--

---

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://discuss.elastic.co/u/Mike)\
**Post date:** [November 29, 2012, 3:53pm UTC](https://discuss.elastic.co/t/limit-terms-facet-results-by-minimum-count/9534/2 "2012-11-29T15:53:26Z")

</div>

Anyone know if this is something that can be done? I remember reading  
somewhere that said this was possible, but nothing in the elasticsearch web  
page says so.

On Friday, November 2, 2012 1:57:52 PM UTC-4, Mike wrote:

> Is there a way to limit the terms returned by a terms facet to ones that  
> only have a count greater than some number? Size limits the number of  
> total terms returned, but I'd like to only get back terms that have a count
> 
> > 1.

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 30, 2012, 2:02am UTC](https://discuss.elastic.co/t/limit-terms-facet-results-by-minimum-count/9534/3 "2012-11-30T02:02:37Z")

</div>

I don't think terms facets support such functionality at the moment. I am  
also not aware of any 3rd party plugins that would do that, but it doesn't  
mean they don't exist 🙂

On Thursday, November 29, 2012 10:53:26 AM UTC-5, Mike wrote:

> Anyone know if this is something that can be done? I remember reading  
> somewhere that said this was possible, but nothing in the elasticsearch web  
> page says so.
> 
> On Friday, November 2, 2012 1:57:52 PM UTC-4, Mike wrote:
> 
> > Is there a way to limit the terms returned by a terms facet to ones that  
> > only have a count greater than some number? Size limits the number of  
> > total terms returned, but I'd like to only get back terms that have a count
> > 
> > > 1.

--

---

<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, 3:02am UTC](https://discuss.elastic.co/t/limit-terms-facet-results-by-minimum-count/9534/4 "2017-07-06T03:02:05Z")

</div>


