Is there a way to ignore the aggregation value in metrics like 'min_doc_count' in term aggregation?

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?

1 Like

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