Class: Elasticsearch::DSL::Search::Aggregations::Cardinality

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/elasticsearch/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