Tutorial by Examples

This is a single value metrics aggregation that calculates the average of the numeric values that are extracted from the aggregated documents. POST /index/_search? { "aggs" : { "avd_value" : { "avg" : { "field" : "name_of_field" } } ...
A single-value metrics aggregation that calculates an approximate count of distinct values. Values can be extracted either from specific fields in the document or generated by a script. POST /index/_search?size=0 { "aggs" : { "type_count" : { "ca...
A multi-value metrics aggregation that computes stats over numeric values extracted from the aggregated documents. These values can be extracted either from specific numeric fields in the documents, or be generated by a provided script. The extended_stats aggregations is an extended version of the ...

Page 1 of 1