Is there another way to find max_value after es5.4.0 deprecated _field_stats API


(Loading Zhang) #1

because _field_stats API is deprecated in 5.4.0
so index_name/_field_stats?level=indices can't use anymore,
is there another API to find max value in the field


(Ivan Brusic) #2

For the max value, you can run a max aggregation on the field:

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


(system) #3

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