# Min\_doc\_count percentage

**URL:** https://discuss.elastic.co/t/min-doc-count-percentage/52067
**Category:** Elasticsearch
**Created:** [June 7, 2016, 12:14pm UTC](https://discuss.elastic.co/t/min-doc-count-percentage/52067 "2016-06-07T12:14:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)
#### Post date: [June 7, 2016, 12:14pm UTC](https://discuss.elastic.co/t/min-doc-count-percentage/52067/1 "2016-06-07T12:14:29Z")

</div>

is there any way of limiting the terms aggregation, like the min\_doc\_count does, but with percentage.  
meaning only of the key appears in at least 1% of the documents

thanks

\*\*im (still) using ES 1.7

---

<div class="post-metadata">

### Author: ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)
#### Post date: [March 8, 2017, 2:36pm UTC](https://discuss.elastic.co/t/min-doc-count-percentage/52067/2 "2017-03-08T14:36:34Z")

</div>

hi guys, anyone knows if there is such option in ES 5.X ?

---

<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 5, 2017, 10:02pm UTC](https://discuss.elastic.co/t/min-doc-count-percentage/52067/3 "2017-07-05T22:02:27Z")

</div>


