Class: Elasticsearch::DSL::Search::Aggregations::DateHistogram

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

Overview

A multi-bucket aggregation which returns a histogram for date fields

Examples:


search do
  aggregation :daily do
    field             'published_at'
    calendar_interval 'day'
    format            'yyyy-MM-dd'
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included