Class: OpenSearch::DSL::Search::Aggregations::DateHistogram

Inherits:
Object
  • Object
show all
Includes:
BaseAggregationComponent
Defined in:
lib/opensearch/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'
    interval 'day'
    format   'yyyy-MM-dd'
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included