Class: Elasticsearch::DSL::Search::Aggregations::ExtendedStatsBucket

Inherits:
Object
  • Object
show all
Includes:
BaseAggregationComponent
Defined in:
lib/elasticsearch/dsl/search/aggregations/pipeline/extended_stats_bucket.rb

Overview

A sibling pipeline aggregation which calculates a variety of stats across all bucket of a specified metric in a sibling aggregation. The specified metric must be numeric and the sibling aggregation must be a multi-bucket aggregation.

Examples:

Passing the options as a Hash


aggregation :stats_monthly_sales do
  extended_stats_bucket buckets_path: 'sales_per_month>sales'
end

Passing the options as a block


aggregation :stats_monthly_sales do
  extended_stats_bucket do
    buckets_path 'sales_per_month>sales'
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included