Class: OpenSearch::DSL::Search::Aggregations::Max

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/opensearch/dsl/search/aggregations/max.rb

Overview

A single-value metric aggregation which returns the maximum value from numeric values

Examples:


search do
  aggregation :max_clicks do
    max field: 'clicks'
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize