SubAggSort

Updated at:

SubAggSort specifies a sorting rule based on the result of a sub-aggregation.

Data structure

message SubAggSort {
    optional string sub_agg_name = 1;
    optional SortOrder order = 2;
}

Parameter

Type

Required

Description

sub_agg_name

string

Yes

The name of the sub-aggregation.

order

SortOrder

Yes

The sorting method based on the sub-aggregation results.