Best Way to Store Synonyms in Collection
TLDR Jeremy asked how to store synonyms in a collection. Jason advised creating a new field with values for efficient indexing.
Powered by Struct AI
1
3
3mo
Solved
Aug 11, 2023 (3 months ago)
Jeremy
Jeremy
07:23 PMAnother question 🙂
Let's say I have thousands of items. And every single one of those items can have anywhere between 1-10 synonyms.
Would it be better to create a new column in the collection, and populate that column with a space delimited list of the synonyms per item?
Or better to create a synonym for each item?
Let's say I have thousands of items. And every single one of those items can have anywhere between 1-10 synonyms.
Would it be better to create a new column in the collection, and populate that column with a space delimited list of the synonyms per item?
Or better to create a synonym for each item?
Jason
Jason
07:24 PMIt would be better to create a new field with those values, so they can be made part of the index
Jeremy
Jeremy
07:24 PMAwesome, thanks for the instant reply!
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3005 threads (79% resolved)
Similar Threads
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.
18
15mo
Defining a Database Collection
Zachary asked if all fields need to be specified when defining a collection. Kishore Nallan clarified that only fields want to be indexed need to be specified.
3
17mo
Solved
Setting Field-Specific Synonyms
Davide inquired about setting field-specific synonyms. Kishore Nallan clarified that synonyms can only be set globally.
2
32mo
Solved