Skip to content

Commit cf115c1

Browse files
committed
Adding key to a date range aggregation
1 parent 17247a8 commit cf115c1

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Diff for: src/Nest/DSL/Facets/DateExpressionRange.cs

+11-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ public class DateExpressionRange
99
internal string _From { get; set; }
1010

1111
[JsonProperty(PropertyName = "to")]
12-
internal string _To { get; set; }
12+
internal string _To { get; set; }
13+
14+
[JsonProperty(PropertyName = "key")]
15+
internal string _Key { get; set; }
1316

1417
public DateExpressionRange From(string value)
1518
{
@@ -20,6 +23,11 @@ public DateExpressionRange To(string value)
2023
{
2124
this._To = value;
2225
return this;
23-
}
24-
}
26+
}
27+
public DateExpressionRange Key(string key)
28+
{
29+
this._Key = key;
30+
return this;
31+
}
32+
}
2533
}

0 commit comments

Comments
 (0)