Skip to content

feat: added a way to remap key name#67

Closed
DavidWeiss2 wants to merge 1 commit into
typesense:masterfrom
DavidWeiss2:feat/rename-fields-keys
Closed

feat: added a way to remap key name#67
DavidWeiss2 wants to merge 1 commit into
typesense:masterfrom
DavidWeiss2:feat/rename-fields-keys

Conversation

@DavidWeiss2

Copy link
Copy Markdown
Contributor

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

…med Id (by mapping it to book_id for example) and to support mapping sub collactions key to root collactions field names.
@jasonbosco

Copy link
Copy Markdown
Member

Closing in favor of #68

@jasonbosco jasonbosco closed this Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants