is it possible to have multi word synonyms
# community-help
k
is it possible to have multi word synonyms
k
Yes we do support multi word synonyms.
k
i mean like mapping words separated by spaces to each other, eg, “black hat” -> “dark cap”, i wasnt able to achieve this, in my testing “black hat” ended up mapping to “dark” and “cap” separately
@Kishore Nallan
k
Hmm no this should work. Can you share a small reproducible example where it doesn't?
Given a query, Typesense will try to find the longest substring that will find a synonym. So
black hat
will be substituted to
dark cap
j
I’m running into the same issue. I created an example synonym (multi-way):
billy corgan, lead singer,  frontman
and if you search for ‘frontman’ it will correctly come up with ‘billy corgan’ but it will also match ‘lead’ in an irrelevant document. This happens on
0.24.1.rc10
and I can confirm it also happens on
0.25.1
.
@Kishore Nallan bump