Skip to content

Commit d52edee

Browse files
committed
fix #1454 add Query(IQueryContainer) to CountDescriptor
1 parent 23ef718 commit d52edee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/Nest/DSL/CountDescriptor.cs

+6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ public CountDescriptor<T> Query(Func<QueryDescriptor<T>, QueryContainer> querySe
7474
return this;
7575
}
7676

77+
public CountDescriptor<T> Query(IQueryContainer queryContainer)
78+
{
79+
Self.Query = queryContainer;
80+
return this;
81+
}
82+
7783
protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo<CountRequestParameters> pathInfo)
7884
{
7985
CountPathInfo.Update(pathInfo, this);

0 commit comments

Comments
 (0)