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

feat: added a way to remap key name #67

Closed DavidWeiss2 closed 11 months ago

DavidWeiss2 commented 11 months ago

feat: added a way to rename key name to support the use of a field named Id (by mapping it to book_id for example) and to support mapping sub-collections key to root collections field names.

Change Summary

We have two problems that we addressed and resolved on this PR:

  1. the field "id" of a document cannot be used in queries.
  2. the collection group product variants cannot be saved to the products collection on Typesense although it has extra needed for the search. and we want to use the variant colors /size /description in the search so they will be resolved to the same productId that the parent product has (the variant ID is irrelevant on search)

We fixed that by remapping the key names in new ways based on user decisions.

PR Checklist

jasonbosco commented 11 months ago

Closing in favor of #68