typesense / firestore-typesense-search

Firebase Extension to automatically push Firestore documents to Typesense for full-text search with typo tolerance, faceting, and more
https://extensions.dev/extensions/typesense/firestore-typesense-search
Apache License 2.0
159 stars 35 forks source link

Fix backfill for subcollections (redo) #92

Closed vazome closed 1 month ago

vazome commented 1 month ago

Change Summary

Resubmission of https://github.com/typesense/firestore-typesense-search/pull/52 with modified README description.

With these changes, the backfill will now work also for subcollections, not only for "root" collection. If the collection path is something like users/{userId}/items the sync has already worked, but the backfill did not as the documents were queried with this collection path, but that did not work. Instead, we use the collectionGroup feature now with only the last part of the path.

PR Checklist

vazome commented 1 month ago

@jasonbosco please take a look

vazome commented 1 month ago

Did not notice that initial file got renamed and improved. This would need to wait then. Closing PR