Class: OpenSearch::DSL::Search::Aggregations::Nested

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

Overview

A single-bucket aggregation which allows to aggregate on nested fields

See the integration test for a full example.

Examples:


search do
  aggregation :offers do
    nested do
      path 'offers'
      aggregation :min_price do
        min field: 'offers.price'
      end
    end
  end
end

Method Summary

Methods included from BaseAggregationComponent

included