Implementing Synonyms with TypeSense in International Travel Company
TLDR Eric inquired about using built-in synonyms in TypeSense in a travel company with different spellings for city names. Jason clarified feature is built-in, but user-specific synonyms list needs to be fed.
Oct 09, 2023 (1 month ago)
Eric
03:43 PMWe are implementing TypeSense at a company that handles international travel. One of the issues we regularly bump into is, some city names are spelled completely differently across various European languages. two quick examples from Italy:
Example 1: Piemont, Piedmont, Pietmont, Pimonte, Piemonte
Example 2: Puglia, Apulia
(This was handled in the past with a dumb metadata table stored in the database, where all these words were added as “tags” for the MySQL search to SELECT from.)
I’ve read about synonyms in your documentation. Are any synonyms built-in, or is it on us to feed those to the system?
Jason
03:48 PMTypesense
Indexed 3011 threads (79% resolved)
Similar Threads
Does Updating Typesense Clear Out Synonyms?
Jeremy queried if updating Typesense clears out synonyms. Jason reassured that they aren't cleared during updates unless the collection is dropped and recreated.
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.
Resolving Typesense Search Issues
Conversation started by Maximilian about Typesense search behavior led to Users Kishore Nallan and Mike discussing and suggesting workaround, with Kishore Nallan promising an official solution soon. No final confirmation of resolution provided.