A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
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>()
.Take(1000);
var batch = query.GetContentResult();
And if you want all the results then you can refer to this -
http://joelabrahamsson.com/retrieve-full-result-set-with-episerver-find/
var results = _searchClient.Search<T>().GetPagesResult();
Returns 10 items but there's 137.....how can I get all 137?