Class: Elasticsearch::DSL::Search::Aggregations::Filter

Inherits:
Object
  • Object
show all
Includes:
BaseAggregationComponent
Defined in:
lib/elasticsearch/dsl/search/aggregations/filter.rb

Overview

Defines a single bucket with documents matching the provided filter, usually to define scope for a nested aggregation

Examples:


search do
  aggregation :clicks_for_tag_one do
    filter terms: { tags: ['one'] } do
      aggregation :sum_clicks do
        sum field: 'clicks'
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included