#community-help

Retrieving All Items from Client Search

TLDR Coffee inquired about fetching all items from a client search. Kishore Nallan suggested using page=X parameter for pagination but warned of performance impact.

Powered by Struct AI

1

2
23mo
Solved
Join the chat
Feb 20, 2022 (23 months ago)
Coffee
Photo of md5-0a020fa5d51d6c8c3ffed274e1ee3067
Coffee
07:45 AM
Client > Get All? - Is it possible to get all found items from a client search vs. limited to x items per_page? ie. client.collections("companies").documents().search(searchParameters);
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:55 AM
You can paginate using page=X parameter to access further pages, but that will have a performance impact. Typesense is a search so it's optimized for fetching top relevant results fast.

The export end-point supports exporting documents based on a filter condition. But it does not support a q parameter.

1