@@ -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
@@ -89,6 +92,7 @@ public class AggregationContainer : IAggregationContainer
8992 private IFilterAggregator _filter ;
9093 private IGeoDistanceAggregator _geoDistance ;
9194 private IGeoHashAggregator _geoHash ;
95+ private IGeoBoundsAggregator _geoBounds ;
9296 private IHistogramAggregator _histogram ;
9397 private IGlobalAggregator _global ;
9498 private IIp4RangeAggregator _ipRange ;
@@ -98,6 +102,7 @@ public class AggregationContainer : IAggregationContainer
98102 private IRangeAggregator _range ;
99103 private ITermsAggregator _terms ;
100104 private ISignificantTermsAggregator _significantTerms ;
105+
101106 public IAverageAggregator Average { get ; set ; }
102107 public IValueCountAggregator ValueCount { get ; set ; }
103108 public IMaxAggregator Max { get ; set ; }
@@ -142,6 +147,12 @@ public IGeoHashAggregator GeoHash
142147 set { _geoHash = value ; }
143148 }
144149
150+ public IGeoBoundsAggregator GeoBounds
151+ {
152+ get { return _geoBounds ; }
153+ set { _geoBounds = value ; }
154+ }
155+
145156 public IHistogramAggregator Histogram
146157 {
147158 get { return _histogram ; }
@@ -225,7 +236,9 @@ public class AggregationDescriptor<T> : IAggregationContainer
225236 IGeoDistanceAggregator IAggregationContainer . GeoDistance { get ; set ; }
226237
227238 IGeoHashAggregator IAggregationContainer . GeoHash { get ; set ; }
228-
239+
240+ IGeoBoundsAggregator IAggregationContainer . GeoBounds { get ; set ; }
241+
229242 IHistogramAggregator IAggregationContainer . Histogram { get ; set ; }
230243
231244 IGlobalAggregator IAggregationContainer . Global { get ; set ; }
@@ -301,6 +314,12 @@ public AggregationDescriptor<T> GeoHash(string name,
301314 return _SetInnerAggregation ( name , selector , ( a , d ) => a . GeoHash = d ) ;
302315 }
303316
317+ public AggregationDescriptor < T > GeoBounds ( string name ,
318+ Func < GeoBoundsAggregationDescriptor < T > , GeoBoundsAggregationDescriptor < T > > selector )
319+ {
320+ return _SetInnerAggregation ( name , selector , ( a , d ) => a . GeoBounds = d ) ;
321+ }
322+
304323 public AggregationDescriptor < T > Histogram ( string name ,
305324 Func < HistogramAggregationDescriptor < T > , HistogramAggregationDescriptor < T > > selector )
306325 {
0 commit comments