@@ -33,6 +33,9 @@ public interface IAggregationContainer
3333 [ JsonProperty ( "geohash_grid" ) ]
3434 IGeoHashAggregator GeoHash { get ; set ; }
3535
36+ [ JsonProperty ( "geo_bounds" ) ]
37+ IGeoBoundsAggregator GeoBounds { get ; set ; }
38+
3639 [ JsonProperty ( "histogram" ) ]
3740 IHistogramAggregator Histogram { get ; set ; }
3841
@@ -92,6 +95,7 @@ public class AggregationContainer : IAggregationContainer
9295 private IFilterAggregator _filter ;
9396 private IGeoDistanceAggregator _geoDistance ;
9497 private IGeoHashAggregator _geoHash ;
98+ private IGeoBoundsAggregator _geoBounds ;
9599 private IHistogramAggregator _histogram ;
96100 private IGlobalAggregator _global ;
97101 private IIp4RangeAggregator _ipRange ;
@@ -102,6 +106,7 @@ public class AggregationContainer : IAggregationContainer
102106 private ITermsAggregator _terms ;
103107 private ISignificantTermsAggregator _significantTerms ;
104108 private IPercentileRanksAggregaor _percentileRanks ;
109+
105110 public IAverageAggregator Average { get ; set ; }
106111 public IValueCountAggregator ValueCount { get ; set ; }
107112 public IMaxAggregator Max { get ; set ; }
@@ -146,6 +151,12 @@ public IGeoHashAggregator GeoHash
146151 set { _geoHash = value ; }
147152 }
148153
154+ public IGeoBoundsAggregator GeoBounds
155+ {
156+ get { return _geoBounds ; }
157+ set { _geoBounds = value ; }
158+ }
159+
149160 public IHistogramAggregator Histogram
150161 {
151162 get { return _histogram ; }
@@ -235,7 +246,9 @@ public class AggregationDescriptor<T> : IAggregationContainer
235246 IGeoDistanceAggregator IAggregationContainer . GeoDistance { get ; set ; }
236247
237248 IGeoHashAggregator IAggregationContainer . GeoHash { get ; set ; }
238-
249+
250+ IGeoBoundsAggregator IAggregationContainer . GeoBounds { get ; set ; }
251+
239252 IHistogramAggregator IAggregationContainer . Histogram { get ; set ; }
240253
241254 IGlobalAggregator IAggregationContainer . Global { get ; set ; }
@@ -319,6 +332,12 @@ public AggregationDescriptor<T> GeoHash(string name,
319332 return _SetInnerAggregation ( name , selector , ( a , d ) => a . GeoHash = d ) ;
320333 }
321334
335+ public AggregationDescriptor < T > GeoBounds ( string name ,
336+ Func < GeoBoundsAggregationDescriptor < T > , GeoBoundsAggregationDescriptor < T > > selector )
337+ {
338+ return _SetInnerAggregation ( name , selector , ( a , d ) => a . GeoBounds = d ) ;
339+ }
340+
322341 public AggregationDescriptor < T > Histogram ( string name ,
323342 Func < HistogramAggregationDescriptor < T > , HistogramAggregationDescriptor < T > > selector )
324343 {
0 commit comments