Class: OpenSearch::DSL::Search::Aggregations::ValueCount

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

Overview

A single-value metric aggregation which returns the number of values for the aggregation scope

Examples:


search do
  aggregation :value_count do
    value_count field: 'clicks'
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize