I am using pagination from my .net app with nest client to just get 50 docs on each page of the grid and that works fine but the response to the search response.HitsMetadata.Total.Value is always 10000 event there are more documents.
even i am paging 50 docs I want to show the real number of documents for that search in the app so user can redefine the filters. what is wrong?
var query = new SearchDescriptor();
query.Sort(s => s.Descending(f => f.Date));
var response = await _context.ElasticClient.SearchAsync(query);
return new Tuple<long, List>(response.HitsMetadata.Total.Value, response.Documents.ToList());