Implementing Relay Cursors on Typesense Results
TLDR Dan struggled with implementing relay cursors on typesense result. Kishore Nallan and Mac discussed how to navigate this, eventually deciding to implement offset/limit-based pagination.
Apr 29, 2022 (20 months ago)
This does not correlate very well to pages - was wondering if it’d be possible to add options to support this? ie, from offset X, return Y results (backwards and forwards).
Kishore Nallan10:57 AM
offset = (page - 1) * per_page
So for page 1, offset will begin with zero. The number of results to take from that position will be equal to per_page.
Kishore Nallan11:02 AM
Kishore Nallan11:03 AM
Kishore Nallan11:04 AM
Kishore Nallan11:05 AM
Kishore Nallan11:10 AM
Apr 30, 2022 (20 months ago)
May 04, 2022 (20 months ago)
Kishore Nallan01:44 AM
Indexed 3005 threads (79% resolved)
Database Management and Personalized Search Queries Discussion
Alexander posed several database and search-related questions. Mac suggested considering GraphQL, considering performance and high availability needs, and leveraging Cloudflare workers. Kishore Nallan provided insights on the capabilities of Typesense and discussed the idea of search personalization using machine learning.
Moving from Algolia to Typesense: Questions and Answers
Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.
Typesense Pagination and Expensive Querying Concerns
Michal inquired about cursor pagination and caching in Typesense. Kishore Nallan provided reasons for their absence and discussed improvements for range filter performance in the next release.
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.
Revisiting Typesense for Efficient DB Indexing and Querying
kopach experienced slow indexing and crashes with Typesense. The community suggested to use batch import and check the server's resources. Improvements were made but additional support was needed for special characters and multi-search queries.