Retrieving Over 250 Documents from Typesense Collections
TLDR Saurabh wanted to fetch more than 250 docs from Typesense. Jason explained they can use the page
parameter and the export endpoint, and advised on how to parse the JSONL response.
May 26, 2023 (6 months ago)
Saurabh
03:22 PMCan we get more than 250 docs from Typesense!!!!? We are searching from 2 different collections simultaneously...
for eg: we have collection A and collection B, 1st we search in Collection A and we use theirs ids to search in collection B , where B have foreign key from collection A
Jason
05:36 PMper_page
parameter specifically.You can use the
page
parameter to fetch additional pages and documentsMay 28, 2023 (6 months ago)
Saurabh
01:10 PMSaurabh
01:11 PMJason
01:11 PMJason
01:12 PMSaurabh
01:14 PMSaurabh
01:39 PMJason
03:12 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Discussing Efficient Use of Export and Search in Typesense
Anton proposes the use of export in Typesense but michtio disagrees, citing loss of search benefits. They further debate on the search limitations and optimal search parameters to return all matching documents.
Handling Search Limitations and Results Parsing in Typesense
Loic faced difficulties with Typesense search result limits and parsing results in Dart. Jason advised using the export endpoint to avoid limits and splitting the JSONL formatted result string by newline for parsing.
Fetching All Docs from a Collection in Typesense
Julian asked if all docs could be fetched from a Typesense collection, and Kishore Nallan explained there's a 250 result limit due to performance considerations. Andrew suggested using the export function, explaining their operations and performance.
Improving Record Retrieval Speed from Typesense
Yoshi sought ways to accelerate Typesense record retrieval. Jason advised upgrading to high availability and using the documents/export endpoint. They also noted a high volume of writes consuming significant CPU capacity as a possible performance factor.
Typesense Document Retrieval Limit and Default Page Size
Maciej asks about the limit of document retrieval in typesense, and Kishore Nallan clarifies the max is 250 per page with a default of 10 when per_page is omitted.