Skip to content

Commit 4a0a549

Browse files
firegrassMpdreamz
authored andcommitted
Support extended_bounds on DateHistogram
1 parent 7369c4d commit 4a0a549

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Nest/DSL/Aggregations/DateHistogramAggregationDescriptor.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,5 +207,14 @@ public DateHistogramAggregationDescriptor<T> OrderDescending(string key)
207207
return this;
208208
}
209209

210+
[JsonProperty("extended_bounds")]
211+
internal IDictionary<string, object> _ExtendedBounds { get; set; }
212+
213+
public DateHistogramAggregationDescriptor<T> ExtendedBounds(string min, string max)
214+
{
215+
this._ExtendedBounds = new Dictionary<string, object> { { "min", min }, { "max", max } };
216+
return this;
217+
}
218+
210219
}
211220
}

0 commit comments

Comments
 (0)