Try our conversational search powered by Generative AI!

Search client only retrieves 10 items? How can I get all?


 var results = _searchClient.Search<T>().GetPagesResult();

Returns 10 items but there's can I get all 137?

Jun 25, 2021 11:52

Hi Sonya,

You should use pagination by using .Take and .Skip function but if you want all the results then you can pass item number in.Take function

var query = SearchClient.Instance.Search<PageData>()

    var batch = query.GetContentResult();

And if you want all the results then you can refer to this -

Edited, Jun 25, 2021 13:06
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.