We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 813987e commit bf4560dCopy full SHA for bf4560d
src/Nest/Document/Multiple/ScrollAll/ScrollAllObservable.cs
@@ -122,8 +122,7 @@ private async Task<ISearchResponse<T>> InitiateSearchAsync(int slice)
122
Field = this._scrollAllRequest.RoutingField
123
};
124
var response = await this._client.SearchAsync<T>(this._searchRequest, this._compositeCancelToken).ConfigureAwait(false);
125
- if (response.Total <= 0)
126
- throw Throw($"ScrollAll query against {response.ApiCall.Uri.PathAndQuery} doesn't contain any documents.", response.ApiCall);
+ //response gets passed to ScrollToCompletionAsync which does validation already
127
return response;
128
}
129
finally { _scrollInitiationLock.Release(); }
0 commit comments