@@ -12,6 +12,9 @@ public interface IAutoDateHistogramAggregation : IBucketAggregation
1212 [ JsonProperty ( "field" ) ]
1313 Field Field { get ; set ; }
1414
15+ [ JsonProperty ( "buckets" ) ]
16+ int ? Buckets { get ; set ; }
17+
1518 [ JsonProperty ( "format" ) ]
1619 string Format { get ; set ; }
1720
@@ -41,6 +44,8 @@ public AutoDateHistogramAggregation(string name) : base(name) { }
4144
4245 public Field Field { get ; set ; }
4346
47+ public int ? Buckets { get ; set ; }
48+
4449 //see: https://github.com/elastic/elasticsearch/issues/9725
4550 public string Format
4651 {
@@ -70,6 +75,8 @@ public class AutoDateHistogramAggregationDescriptor<T>
7075
7176 Field IAutoDateHistogramAggregation . Field { get ; set ; }
7277
78+ int ? IAutoDateHistogramAggregation . Buckets { get ; set ; }
79+
7380 //see: https://github.com/elastic/elasticsearch/issues/9725
7481 string IAutoDateHistogramAggregation . Format
7582 {
@@ -95,6 +102,8 @@ string IAutoDateHistogramAggregation.Format
95102
96103 public AutoDateHistogramAggregationDescriptor < T > Field ( Expression < Func < T , object > > field ) => Assign ( field , ( a , v ) => a . Field = v ) ;
97104
105+ public AutoDateHistogramAggregationDescriptor < T > Buckets ( int ? buckets ) => Assign ( buckets , ( a , v ) => a . Buckets = v ) ;
106+
98107 public AutoDateHistogramAggregationDescriptor < T > Script ( string script ) => Assign ( ( InlineScript ) script , ( a , v ) => a . Script = v ) ;
99108
100109 public AutoDateHistogramAggregationDescriptor < T > Script ( Func < ScriptDescriptor , IScript > scriptSelector ) =>
0 commit comments