Backfilling Data for Typesense Extensions
TLDR Shaun asked if a method would trigger backfill for all typesense extensions. Jason confirmed and provided a solution for backfilling a single collection.
1
Mar 30, 2023 (8 months ago)
Shaun
03:51 AM1. Create a new Firestore collection called
typesense_sync
through the Firestore UI.2. Create a new document with the ID
backfill
and contents of {trigger: true}
Will this trigger backfill activity for all typesense extensions regardless if you are only interested in just backfilling one of them?
Jason
04:46 AMThat’s correct.
If you want to backfill just one collection, have a look at the 3rd bullet point under “Backfill existing data” here: https://github.com/typesense/firestore-typesense-search
Shaun
04:58 AM1
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
Resolving Backfill Script Issues in Typesense with Firebase
Kaylee had problems rerunning the backfill script with Typesense and Firebase. Jason suggested deleting and recreating the `backfill` Firestore document.
Typesense and Firebase Integration Troubleshooting
Bobby struggled with getting data to Typesense from Firebase. After sharing his logs and settings screenshots, Jason helped him fix the path configuration and suggested ways to successful re-trigger a backfill. This resolved the issue.
Typesense Firestore Real-Time Update Query
DomijKu required help with real-time updates on frontend when backends changes occur. Jason, CaptainCodeman and Loic explained triggering updates via direct subscription to Firestore, cloud function triggers, and stream subscriptions. Loic recommended switching to Typesense for searches beyond 20 documents.