@@ -132,11 +132,26 @@ public override Aggregation Read(ref Utf8JsonReader reader, Type typeToConvert,
132132 return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . FiltersAggregation ? > ( "filters" , ref reader , options ) ;
133133 }
134134
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+
135145 if ( propertyName == "geo_distance" )
136146 {
137147 return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . GeoDistanceAggregation ? > ( "geo_distance" , ref reader , options ) ;
138148 }
139149
150+ if ( propertyName == "geo_line" )
151+ {
152+ return AggregationSerializationHelper . ReadContainer < Elastic . Clients . Elasticsearch . Aggregations . GeoLineAggregation ? > ( "geo_line" , ref reader , options ) ;
153+ }
154+
140155 if ( propertyName == "geohash_grid" )
141156 {
142157 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
430445 return SetContainer ( name , Aggregation . CreateWithAction ( "filters" , configure ) ) ;
431446 }
432447
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+
433458 public AggregationDescriptor < TDocument > GeoDistance ( string name , Action < GeoDistanceAggregationDescriptor < TDocument > > configure )
434459 {
435460 return SetContainer ( name , Aggregation . CreateWithAction ( "geo_distance" , configure ) ) ;
436461 }
437462
463+ public AggregationDescriptor < TDocument > GeoLine ( string name , Action < GeoLineAggregationDescriptor < TDocument > > configure )
464+ {
465+ return SetContainer ( name , Aggregation . CreateWithAction ( "geo_line" , configure ) ) ;
466+ }
467+
438468 public AggregationDescriptor < TDocument > GeohashGrid ( string name , Action < GeohashGridAggregationDescriptor < TDocument > > configure )
439469 {
440470 return SetContainer ( name , Aggregation . CreateWithAction ( "geohash_grid" , configure ) ) ;
@@ -769,6 +799,26 @@ public AggregationDescriptor Filters<TDocument>(string name, Action<FiltersAggre
769799 return SetContainer ( name , Aggregation . CreateWithAction ( "filters" , configure ) ) ;
770800 }
771801
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+
772822 public AggregationDescriptor GeoDistance ( string name , Action < GeoDistanceAggregationDescriptor > configure )
773823 {
774824 return SetContainer ( name , Aggregation . CreateWithAction ( "geo_distance" , configure ) ) ;
@@ -779,6 +829,16 @@ public AggregationDescriptor GeoDistance<TDocument>(string name, Action<GeoDista
779829 return SetContainer ( name , Aggregation . CreateWithAction ( "geo_distance" , configure ) ) ;
780830 }
781831
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+
782842 public AggregationDescriptor GeohashGrid ( string name , Action < GeohashGridAggregationDescriptor > configure )
783843 {
784844 return SetContainer ( name , Aggregation . CreateWithAction ( "geohash_grid" , configure ) ) ;
0 commit comments