@@ -37,7 +37,7 @@ public interface IDateHistogramAggregation : IBucketAggregation
37
37
HistogramOrder Order { get ; set ; }
38
38
39
39
[ JsonProperty ( "extended_bounds" ) ]
40
- ExtendedBounds < DateTime > ExtendedBounds { get ; set ; }
40
+ ExtendedBounds < DateMath > ExtendedBounds { get ; set ; }
41
41
42
42
[ JsonProperty ( "missing" ) ]
43
43
DateTime ? Missing { get ; set ; }
@@ -68,7 +68,7 @@ public string Format
68
68
public string TimeZone { get ; set ; }
69
69
public string Offset { get ; set ; }
70
70
public HistogramOrder Order { get ; set ; }
71
- public ExtendedBounds < DateTime > ExtendedBounds { get ; set ; }
71
+ public ExtendedBounds < DateMath > ExtendedBounds { get ; set ; }
72
72
public DateTime ? Missing { get ; set ; }
73
73
74
74
internal DateHistogramAggregation ( ) { }
@@ -113,7 +113,7 @@ string IDateHistogramAggregation.Format
113
113
114
114
HistogramOrder IDateHistogramAggregation . Order { get ; set ; }
115
115
116
- ExtendedBounds < DateTime > IDateHistogramAggregation . ExtendedBounds { get ; set ; }
116
+ ExtendedBounds < DateMath > IDateHistogramAggregation . ExtendedBounds { get ; set ; }
117
117
118
118
DateTime ? IDateHistogramAggregation . Missing { get ; set ; }
119
119
@@ -148,8 +148,8 @@ public DateHistogramAggregationDescriptor<T> OrderAscending(string key) =>
148
148
public DateHistogramAggregationDescriptor < T > OrderDescending ( string key ) =>
149
149
Assign ( a => a . Order = new HistogramOrder { Key = key , Order = SortOrder . Descending } ) ;
150
150
151
- public DateHistogramAggregationDescriptor < T > ExtendedBounds ( DateTime min , DateTime max ) =>
152
- Assign ( a=> a . ExtendedBounds = new ExtendedBounds < DateTime > { Minimum = min , Maximum = max } ) ;
151
+ public DateHistogramAggregationDescriptor < T > ExtendedBounds ( DateMath min , DateMath max ) =>
152
+ Assign ( a=> a . ExtendedBounds = new ExtendedBounds < DateMath > { Minimum = min , Maximum = max } ) ;
153
153
154
154
public DateHistogramAggregationDescriptor < T > Missing ( DateTime missing ) => Assign ( a => a . Missing = missing ) ;
155
155
}
0 commit comments