Class: Elasticsearch::DSL::Search::Aggregations::Global

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

Overview

Defines a single bucket of all the documents matching a query

Examples:


search do
  aggregation :all_documents do
    global do
      aggregation :avg_clicks do
        avg field: 'clicks'
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included