Skip to content

Commit 5de59b4

Browse files
committed
request => selector
1 parent f58e5d3 commit 5de59b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nest/Search/Search/SearchRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public SearchDescriptor<T> Query(Func<QueryContainerDescriptor<T>, QueryContaine
408408
/// For scroll queries that return a lot of documents it is possible to split the scroll in multiple slices which can be consumed independently
409409
/// </summary>
410410
public SearchDescriptor<T> Slice(Func<SlicedScrollDescriptor<T>, ISlicedScroll> selector) =>
411-
Assign(a => a.Slice = query?.Invoke(new SlicedScrollDescriptor<T>()));
411+
Assign(a => a.Slice = selector?.Invoke(new SlicedScrollDescriptor<T>()));
412412

413413
/// <summary>
414414
/// Shortcut to default to a match all query

0 commit comments

Comments
 (0)