Skip to content

Commit f5df481

Browse files
committed
fix #996 OrderDescending on DateHistogram aggs got written as asc
1 parent fdf1a75 commit f5df481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nest/DSL/Aggregations/DateHistogramAggregationDescriptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public DateHistogramAggregationDescriptor<T> OrderAscending(string key)
214214

215215
public DateHistogramAggregationDescriptor<T> OrderDescending(string key)
216216
{
217-
Self.Order = new Dictionary<string, string> { {key, "asc"}};
217+
Self.Order = new Dictionary<string, string> { {key, "desc"}};
218218
return this;
219219
}
220220

0 commit comments

Comments
 (0)