#community-help

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.

Powered by Struct AI

1

1

3
2mo
Solved
Join the chat
Aug 05, 2023 (2 months ago)
Nikos
Photo of md5-dcea712ebb65b3d0070fd9a3434d009d
Nikos
05:59 AM
Hello,

I 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
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
06:59 AM
Check the clone collection feature: https://typesense.org/docs/0.24.1/api/collections.html#cloning-a-collection-schema

It will move synonyms and overrides along with collection schema but won't copy the data.

1

Nikos
Photo of md5-dcea712ebb65b3d0070fd9a3434d009d
Nikos
07:00 AM
That's awesome !! I didn't mentioned before !!

Thank you Kishore Nallan for sharing !! 🙂

1