Transferring Synonyms and Curations Between TypeSense Collections
TLDR Nikos asked about transferring synonyms and curations data between TypeSense collections. Kishore Nallan suggested using the clone collection feature.
1
1
Aug 05, 2023 (2 months ago)
Nikos
05:59 AMI am new to TypeSense and I have stared building a project on it for an online local business directory.
To use the TypeSense I've created a dashboard to manage all the tasks, such us managing indexes, synonyms, aliases, etc.
So far, from what I found is that the synonyms and the curations are all child entities of the collections.
As the Synonyms and the Curations can be quite a lot, is there a way to copy / move all that information from one Collection to another ?
For example, let's say I have a collection for Blog Posts, and the blog posts have a list of 200 synonyms records and 50 curations. At this point, if I need create new Blog Posts collection (and connect it with an alias of course) what is the mechanism to transfer all the 200 synonyms and the 50 curations to the new collection ?
Kishore Nallan
06:59 AMIt will move synonyms and overrides along with collection schema but won't copy the data.
1
Nikos
07:00 AMThank you Kishore Nallan for sharing !! 🙂
1
Typesense
Indexed 2779 threads (79% resolved)
Similar Threads
Adding Curation Rules to Collection Alias in Typesense Cloud
David inquiries about adding curation rules to a collection alias in Typesense Cloud. Kishore Nallan advised that rules must be backed up and reapplied with each new collection.
Managing Synonyms in Collection Updates
Jon sought the best practice for persisting synonyms with new alias collection updates. Jason suggested re-uploading synonyms with each update, gave an insight into future plans of shared synonym lists across collections and recommended creating a GitHub issue.
Troubleshooting Typesense Document Import Error
Christopher had trouble importing 2.1M documents into Typesense due to memory errors. Jason clarified the system requirements, explaining the correlation between RAM and dataset size, and ways to tackle the issue. They both also discussed database-like query options.