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
155 stars 29 forks source link

Fix backfill for subcollections #51

Closed guenth39 closed 1 year ago

guenth39 commented 1 year ago

Change Summary

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.

Closes #17

PR Checklist

guenth39 commented 1 year ago

Closed in favor of #52 to prevent mixing up different changes.