Class: OpenSearch::DSL::Search::Aggregations::Composite
- Inherits:
-
Object
- Object
- OpenSearch::DSL::Search::Aggregations::Composite
- Includes:
- BaseAggregationComponent
- Defined in:
- lib/opensearch/dsl/search/aggregations/composite.rb
Instance Method Summary collapse
Methods included from BaseAggregationComponent
Instance Method Details
#to_hash(_options = {}) ⇒ Object
57 58 59 60 61 62 63 |
# File 'lib/opensearch/dsl/search/aggregations/composite.rb', line 57 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 |