Class: Elasticsearch::DSL::Search::Aggregations::Composite
- Inherits:
-
Object
- Object
- Elasticsearch::DSL::Search::Aggregations::Composite
- Includes:
- BaseAggregationComponent
- Defined in:
- lib/elasticsearch/dsl/search/aggregations/composite.rb
Overview
A multi-bucket aggregation that creates composite buckets from different sources.
Instance Method Summary collapse
Methods included from BaseAggregationComponent
Instance Method Details
#to_hash(_options = {}) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/elasticsearch/dsl/search/aggregations/composite.rb', line 49 def to_hash(={}) super # remove :after if no value is given @hash[name.to_sym].delete(:after) if @hash[name.to_sym].is_a?(Hash) && @hash[name.to_sym][:after].nil? @hash end |