@@ -17,6 +17,9 @@ public interface IDateRangeAggregation : IBucketAggregation
17
17
[ DataMember ( Name = "format" ) ]
18
18
string Format { get ; set ; }
19
19
20
+ [ DataMember ( Name = "missing" ) ]
21
+ object Missing { get ; set ; }
22
+
20
23
[ DataMember ( Name = "ranges" ) ]
21
24
IEnumerable < IDateRangeExpression > Ranges { get ; set ; }
22
25
@@ -32,6 +35,7 @@ public DateRangeAggregation(string name) : base(name) { }
32
35
33
36
public Field Field { get ; set ; }
34
37
public string Format { get ; set ; }
38
+ public object Missing { get ; set ; }
35
39
public IEnumerable < IDateRangeExpression > Ranges { get ; set ; }
36
40
public string TimeZone { get ; set ; }
37
41
@@ -47,6 +51,8 @@ public class DateRangeAggregationDescriptor<T>
47
51
48
52
string IDateRangeAggregation . Format { get ; set ; }
49
53
54
+ object IDateRangeAggregation . Missing { get ; set ; }
55
+
50
56
IEnumerable < IDateRangeExpression > IDateRangeAggregation . Ranges { get ; set ; }
51
57
52
58
string IDateRangeAggregation . TimeZone { get ; set ; }
@@ -57,6 +63,8 @@ public class DateRangeAggregationDescriptor<T>
57
63
58
64
public DateRangeAggregationDescriptor < T > Format ( string format ) => Assign ( format , ( a , v ) => a . Format = v ) ;
59
65
66
+ public DateRangeAggregationDescriptor < T > Missing ( object missing ) => Assign ( missing , ( a , v ) => a . Missing = v ) ;
67
+
60
68
public DateRangeAggregationDescriptor < T > Ranges ( params IDateRangeExpression [ ] ranges ) =>
61
69
Assign ( ranges . ToListOrNullIfEmpty ( ) , ( a , v ) => a . Ranges = v ) ;
62
70
0 commit comments