@@ -64,6 +64,11 @@ public override Aggregation Read(ref Utf8JsonReader reader, Type typeToConvert,
64
64
return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . BoxplotAggregation ? > ( "boxplot" , ref reader , options ) ;
65
65
}
66
66
67
+ if ( propertyName == "bucket_sort" )
68
+ {
69
+ return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . BucketSortAggregation ? > ( "bucket_sort" , ref reader , options ) ;
70
+ }
71
+
67
72
if ( propertyName == "cardinality" )
68
73
{
69
74
return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . CardinalityAggregation ? > ( "cardinality" , ref reader , options ) ;
@@ -316,6 +321,11 @@ public AggregationDescriptor<TDocument> Boxplot(string name, Action<BoxplotAggre
316
321
return SetContainer ( name , Aggregation . CreateWithAction ( "boxplot" , configure ) ) ;
317
322
}
318
323
324
+ public AggregationDescriptor < TDocument > BucketSort ( string name , Action < BucketSortAggregationDescriptor < TDocument > > configure )
325
+ {
326
+ return SetContainer ( name , Aggregation . CreateWithAction ( "bucket_sort" , configure ) ) ;
327
+ }
328
+
319
329
public AggregationDescriptor < TDocument > Cardinality ( string name , Action < CardinalityAggregationDescriptor < TDocument > > configure )
320
330
{
321
331
return SetContainer ( name , Aggregation . CreateWithAction ( "cardinality" , configure ) ) ;
@@ -564,6 +574,16 @@ public AggregationDescriptor Boxplot<TDocument>(string name, Action<BoxplotAggre
564
574
return SetContainer ( name , Aggregation . CreateWithAction ( "boxplot" , configure ) ) ;
565
575
}
566
576
577
+ public AggregationDescriptor BucketSort ( string name , Action < BucketSortAggregationDescriptor > configure )
578
+ {
579
+ return SetContainer ( name , Aggregation . CreateWithAction ( "bucket_sort" , configure ) ) ;
580
+ }
581
+
582
+ public AggregationDescriptor BucketSort < TDocument > ( string name , Action < BucketSortAggregationDescriptor < TDocument > > configure )
583
+ {
584
+ return SetContainer ( name , Aggregation . CreateWithAction ( "bucket_sort" , configure ) ) ;
585
+ }
586
+
567
587
public AggregationDescriptor Cardinality ( string name , Action < CardinalityAggregationDescriptor > configure )
568
588
{
569
589
return SetContainer ( name , Aggregation . CreateWithAction ( "cardinality" , configure ) ) ;
0 commit comments