class OpenSearch::DSL::Search::Aggregations::Terms
A multi-bucket aggregation which returns the collection of terms and their document counts
@example Passing the options as a Hash
aggregation :tags do terms field: 'tags' end
@example Passing the options as a block
search do aggregation :tags do terms do field 'tags' end end end