Setting Up Synonyms for Misspelled Brands
TLDR Henrik had trouble setting up a synonym for a misspelled brand. Kishore Nallan suggested making 'hey' the root to match 'hay', resolving the issue.
Apr 24, 2023 (5 months ago)
Henrik
08:40 AMI'm brand new to the community - so sorry if my question here in the lounge is misplaced.
I'm have a test setup on typesense cloud.
One of the faceted properties is "Brand" and there is a brand called "Hay" which is often misspelled as "hey"
I've tried to setup a synonym as this:
Root: Hay
Synonym: hey
But after that setup I still get zero results when searching for 'hey'
Am I using the feature wrong?
I'm querying by productName, brandName, description and the word "Hay" is present is all three of those properties.
Kishore Nallan
08:45 AMhey
should be the root if you want hey
to match hay
Henrik
09:18 AMWhat about case sensitivity?
Do I have to create 2 entries in synonyms
Hay hey
hay hey
Typesense
Indexed 2786 threads (79% resolved)
Similar Threads
Understanding Typesense's Synonym Functionality
Blake was having trouble getting partial matches when searching for synonyms in Typesense. Kishore Nallan suggested using an array field for alternative names instead of synonyms.
Improving Synonym Ranking in Search Results
John wanted a better ranking method for synonyms in searches. Jason suggested creating a GitHub issue to add a new ranking option.
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.