Class: OpenSearch::DSL::Search::Aggregations::Cardinality

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

Overview

A single-value metric aggregation which returns the approximate count of distinct values

Examples:


search do
  aggregation :authors do
    cardinality do
      field 'author'
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize