Is there a way to get all the records in a NEST request (ElasticSearch)?

I am making this request in NEST

var result = elasticClient.Search<SearchItemClass>( s=> s.Index("indexName") .Type("typeName") .Query(q => q.ConstantScore(score => score.Filter(f => f.Term("fieldName", "term")))) ); 

And by default 10 hits will be returned.

Is there a way to get ALL the results WITHOUT an indication. Size (value) or .Take (value)?

Thanks in advance!

+6
source share
1 answer

This is a duplicate of the Elasticsearch request to return all records . To use scanning and scrolling, check out the NEST documentation here .

+3
source

Source: https://habr.com/ru/post/981030/


All Articles