Class: OpenSearch::DSL::Search::Aggregations::Sum

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

Overview

A single-value metric aggregation which returns the sum of numeric values

Examples:


search do
  aggregation :sum_clicks do
    sum field: 'clicks'
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize