Transforming Firebase Collection Data before Indexing to Typesense
TLDR David wants to transform data before indexing to Typesense. Jason suggests forking the extension and using a Google Cloud function. David successfully implements the solution.
3
1
May 12, 2023 (7 months ago)
David
12:52 AMIf I'm monitoring a firebase collection using the Typesense extension, is it possible to transform that data at all before it is indexed to Typesense? I want to add some more data to each record so I can filter on those values.
The values I want to add to each record are also the two fields in my
Firestore Collection Path
- pathOne/{thisValue}/pathTwo/{andThisValue}/pathThree
- if I can't add them to a record using a firebase cloud function, can I filter on these values any other way?Thanks 🙏
Jason
12:54 AM1
May 16, 2023 (7 months ago)
David
03:20 PMWould it require publishing the forked version of the extension to the firebase extension marketplace? And has it been done before?
Jason
04:27 PM1
Jason
04:28 PMYup, this is not an uncommon scenario.
1
Jun 05, 2023 (6 months ago)
David
06:08 PMBut does this also require a custom
backfill
function?When backfilling data, we don't get any errors in the console, but the function runs and never enters the batching loops to write to typesense
David
06:16 PMtypesenseDocumentFromSnapshot
so the changes apply to both writing and backfilling..1
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
Resolving Issues with Firebase Extension and Typesense Configuration
Ernie sought clarification on how to handle the Firebase Extension and typesense collection configuration issues. Jason explained how to correctly specify the path and refresh the page to see updated data. After applying the advice given, Ernie successfully saw the changes.
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.
User Queries About TypeSense Cloud and Firebase Integration
Loic had various queries about TypeSense Cloud and Firebase integration including modifying schema, existing documents, and geopoint and timestamp indexing. Kishore Nallan, Jason, and Harpreet provided clarifications and solutions.