@@ -132,11 +132,26 @@ public override Aggregation Read(ref Utf8JsonReader reader, Type typeToConvert,
132
132
return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . FiltersAggregation ? > ( "filters" , ref reader , options ) ;
133
133
}
134
134
135
+ if ( propertyName == "geo_bounds" )
136
+ {
137
+ return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . GeoBoundsAggregation ? > ( "geo_bounds" , ref reader , options ) ;
138
+ }
139
+
140
+ if ( propertyName == "geo_centroid" )
141
+ {
142
+ return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . GeoCentroidAggregation ? > ( "geo_centroid" , ref reader , options ) ;
143
+ }
144
+
135
145
if ( propertyName == "geo_distance" )
136
146
{
137
147
return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . GeoDistanceAggregation ? > ( "geo_distance" , ref reader , options ) ;
138
148
}
139
149
150
+ if ( propertyName == "geo_line" )
151
+ {
152
+ return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . GeoLineAggregation ? > ( "geo_line" , ref reader , options ) ;
153
+ }
154
+
140
155
if ( propertyName == "geohash_grid" )
141
156
{
142
157
return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . GeohashGridAggregation ? > ( "geohash_grid" , ref reader , options ) ;
@@ -430,11 +445,26 @@ public AggregationDescriptor<TDocument> Filters(string name, Action<FiltersAggre
430
445
return SetContainer ( name , Aggregation . CreateWithAction ( "filters" , configure ) ) ;
431
446
}
432
447
448
+ public AggregationDescriptor < TDocument > GeoBounds ( string name , Action < GeoBoundsAggregationDescriptor < TDocument > > configure )
449
+ {
450
+ return SetContainer ( name , Aggregation . CreateWithAction ( "geo_bounds" , configure ) ) ;
451
+ }
452
+
453
+ public AggregationDescriptor < TDocument > GeoCentroid ( string name , Action < GeoCentroidAggregationDescriptor < TDocument > > configure )
454
+ {
455
+ return SetContainer ( name , Aggregation . CreateWithAction ( "geo_centroid" , configure ) ) ;
456
+ }
457
+
433
458
public AggregationDescriptor < TDocument > GeoDistance ( string name , Action < GeoDistanceAggregationDescriptor < TDocument > > configure )
434
459
{
435
460
return SetContainer ( name , Aggregation . CreateWithAction ( "geo_distance" , configure ) ) ;
436
461
}
437
462
463
+ public AggregationDescriptor < TDocument > GeoLine ( string name , Action < GeoLineAggregationDescriptor < TDocument > > configure )
464
+ {
465
+ return SetContainer ( name , Aggregation . CreateWithAction ( "geo_line" , configure ) ) ;
466
+ }
467
+
438
468
public AggregationDescriptor < TDocument > GeohashGrid ( string name , Action < GeohashGridAggregationDescriptor < TDocument > > configure )
439
469
{
440
470
return SetContainer ( name , Aggregation . CreateWithAction ( "geohash_grid" , configure ) ) ;
@@ -769,6 +799,26 @@ public AggregationDescriptor Filters<TDocument>(string name, Action<FiltersAggre
769
799
return SetContainer ( name , Aggregation . CreateWithAction ( "filters" , configure ) ) ;
770
800
}
771
801
802
+ public AggregationDescriptor GeoBounds ( string name , Action < GeoBoundsAggregationDescriptor > configure )
803
+ {
804
+ return SetContainer ( name , Aggregation . CreateWithAction ( "geo_bounds" , configure ) ) ;
805
+ }
806
+
807
+ public AggregationDescriptor GeoBounds < TDocument > ( string name , Action < GeoBoundsAggregationDescriptor < TDocument > > configure )
808
+ {
809
+ return SetContainer ( name , Aggregation . CreateWithAction ( "geo_bounds" , configure ) ) ;
810
+ }
811
+
812
+ public AggregationDescriptor GeoCentroid ( string name , Action < GeoCentroidAggregationDescriptor > configure )
813
+ {
814
+ return SetContainer ( name , Aggregation . CreateWithAction ( "geo_centroid" , configure ) ) ;
815
+ }
816
+
817
+ public AggregationDescriptor GeoCentroid < TDocument > ( string name , Action < GeoCentroidAggregationDescriptor < TDocument > > configure )
818
+ {
819
+ return SetContainer ( name , Aggregation . CreateWithAction ( "geo_centroid" , configure ) ) ;
820
+ }
821
+
772
822
public AggregationDescriptor GeoDistance ( string name , Action < GeoDistanceAggregationDescriptor > configure )
773
823
{
774
824
return SetContainer ( name , Aggregation . CreateWithAction ( "geo_distance" , configure ) ) ;
@@ -779,6 +829,16 @@ public AggregationDescriptor GeoDistance<TDocument>(string name, Action<GeoDista
779
829
return SetContainer ( name , Aggregation . CreateWithAction ( "geo_distance" , configure ) ) ;
780
830
}
781
831
832
+ public AggregationDescriptor GeoLine ( string name , Action < GeoLineAggregationDescriptor > configure )
833
+ {
834
+ return SetContainer ( name , Aggregation . CreateWithAction ( "geo_line" , configure ) ) ;
835
+ }
836
+
837
+ public AggregationDescriptor GeoLine < TDocument > ( string name , Action < GeoLineAggregationDescriptor < TDocument > > configure )
838
+ {
839
+ return SetContainer ( name , Aggregation . CreateWithAction ( "geo_line" , configure ) ) ;
840
+ }
841
+
782
842
public AggregationDescriptor GeohashGrid ( string name , Action < GeohashGridAggregationDescriptor > configure )
783
843
{
784
844
return SetContainer ( name , Aggregation . CreateWithAction ( "geohash_grid" , configure ) ) ;
0 commit comments