Class: Elasticsearch::DSL::Search::Aggregations::Histogram

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

Overview

A multi-bucket aggregation which returns document counts for a defined numerical interval

Examples:


search do
  aggregation :age do
    histogram do
      field   'age'
      interval 5
    end
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included