As far as I understand, Scroll API is used to handle response of more than 10000 documents, where you surpass the limit...
I am doing it with NEST C# package as follows:
var response = client.Search<JoinTestOneTwo>(s => s
.Index(indices)
.Type(types)
.Scroll("1m")
.MatchAll()
.Pretty());
var all_results = client.Scroll<JoinTestOneTwo>("1m",response.ScrollId);
if (all_results.ApiCall.ResponseBodyInBytes != null)
{
var resp = System.Text.Encoding.UTF8.GetString(all_results.ApiCall.ResponseBodyInBytes);
Console.WriteLine(resp);
}
I am getting the same result of variable "response"...
My question is how to collect more than 10000 documents in Elasticsearch ?
Note: Using Elasticsearch 6.0.0 with NEST version 6.0.0-rc1