Skip to content

Fix sub-aggregation example #1219

@gmarz

Description

@gmarz

Originally reported here http://stackoverflow.com/questions/28153597/elasticsearch-net-nest-sub-aggregation

http://nest.azurewebsites.net/nest/aggregations/handling.html

The sub-aggregation example should instead be:

var terms = result.Aggs.Terms("my_agg");

foreach(var term in terms.Items)
{
    var max = term.Max("my_sub_agg");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions