0

I am trying to get average of grouped minimum values of a field. The current working query

In the image, I am getting two buckets with min_time property in them. I need to get average of this min_time. So, the final result should have only one bucket with average of min_time. I think, it can be achieved through piping but not quite getting it.

Piyush Arora
  • 138
  • 1
  • 12

1 Answers1

0

I think you are looking for pipeline aggregations which is a feature in version 2.0 and later

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline.html

troymass
  • 1,022
  • 3
  • 11
  • 24