Avoiding Pagination in Search Results and Fetching Counts
TLDR Jainil asked about avoiding pagination and fetching counts. Jason suggested using export and multi_search endpoints, and setting per_page to 0 for counts.
Powered by Struct AI
3
5
8mo
Apr 07, 2023 (8 months ago)
Jainil
Jainil
05:01 PMIs there a way to not paginate the search results?
Jason
Jason
05:09 PMThe export endpoint lets you fetch all results without pagination, but it only supports filter_by and not q parameter
1
05:10
Jason
05:10 PMIf you need to use the q parameter, you could request multiple pages via multi_search endpoint
1
Jainil
Jainil
07:19 PMFollowup question, is there an endpoint to just fetch counts?
Apr 08, 2023 (8 months ago)
Jason
Jason
05:57 AMYou could set per_page to 0, to just get counts
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Querying Search Results Without Pagination
Krish inquired about fetching all search documents at once without pagination. Jason confirmed it's not possible and suggested opening a GitHub issue for the feature.
11
12mo
Disabling Pagination and Retrieving Large Data Sets
Mohsen was looking to disable pagination and retrieve over 250 items. Jason explained that it cannot be disabled for performance reasons but offered an alternative solution using the documents/export endpoint.
4
2mo
Fetching All Documents Without Pagination From a Collection
Md.Riad asked about fetching all documents without pagination from a collection. Jason recommended documents/export endpoint and using page for full-text search.
4
1mo