@@ -13,6 +13,9 @@ public interface IAutoDateHistogramAggregation : IBucketAggregation
1313 [ DataMember ( Name = "field" ) ]
1414 Field Field { get ; set ; }
1515
16+ [ DataMember ( Name = "buckets" ) ]
17+ int ? Buckets { get ; set ; }
18+
1619 [ DataMember ( Name = "format" ) ]
1720 string Format { get ; set ; }
1821
@@ -42,6 +45,8 @@ public AutoDateHistogramAggregation(string name) : base(name) { }
4245
4346 public Field Field { get ; set ; }
4447
48+ public int ? Buckets { get ; set ; }
49+
4550 //see: https://github.com/elastic/elasticsearch/issues/9725
4651 public string Format
4752 {
@@ -71,6 +76,8 @@ public class AutoDateHistogramAggregationDescriptor<T>
7176
7277 Field IAutoDateHistogramAggregation . Field { get ; set ; }
7378
79+ int ? IAutoDateHistogramAggregation . Buckets { get ; set ; }
80+
7481 //see: https://github.com/elastic/elasticsearch/issues/9725
7582 string IAutoDateHistogramAggregation . Format
7683 {
@@ -96,6 +103,8 @@ string IAutoDateHistogramAggregation.Format
96103
97104 public AutoDateHistogramAggregationDescriptor < T > Field < TValue > ( Expression < Func < T , TValue > > field ) => Assign ( field , ( a , v ) => a . Field = v ) ;
98105
106+ public AutoDateHistogramAggregationDescriptor < T > Buckets ( int ? buckets ) => Assign ( buckets , ( a , v ) => a . Buckets = v ) ;
107+
99108 public AutoDateHistogramAggregationDescriptor < T > Script ( string script ) => Assign ( ( InlineScript ) script , ( a , v ) => a . Script = v ) ;
100109
101110 public AutoDateHistogramAggregationDescriptor < T > Script ( Func < ScriptDescriptor , IScript > scriptSelector ) =>
0 commit comments