# Is there a way to ignore the aggregation value in metrics like 'min\_doc\_count' in term aggregation?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-ignore-the-aggregation-value-in-metrics-like-min-doc-count-in-term-aggregation/116421>\
**Category:** Elasticsearch\
**Created:** [January 22, 2018, 2:36am UTC](https://discuss.elastic.co/t/is-there-a-way-to-ignore-the-aggregation-value-in-metrics-like-min-doc-count-in-term-aggregation/116421 "2018-01-22T02:36:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bglee](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@bglee](https://discuss.elastic.co/u/bglee)\
**Post date:** [January 22, 2018, 2:36am UTC](https://discuss.elastic.co/t/is-there-a-way-to-ignore-the-aggregation-value-in-metrics-like-min-doc-count-in-term-aggregation/116421/1 "2018-01-22T02:36:41Z")

</div>

Hi, I am bglee.

```
GET myIndex/_search
   {  
   "size":0,
   "query":{  
      ...
   },
   "aggs":{  
      "only_values_​​return_greater_than_10":{  
         "sum":{  
            "field":"only_values_​​return_greater_than_10"
         }
      }
   }
}

```

In metrics aggregations, I want to return value only greater than 10.  
I know that there is a field named 'min\_doc\_count' with a similar function in the term query.

Is there a way to ignore the aggregation return value in metrics in some conditions?

---

<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:** [February 19, 2018, 2:36am UTC](https://discuss.elastic.co/t/is-there-a-way-to-ignore-the-aggregation-value-in-metrics-like-min-doc-count-in-term-aggregation/116421/2 "2018-02-19T02:36:42Z")

</div>

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