Hello, I am having an issue with multi-way synonym...
# community-help
m
Hello, I am having an issue with multi-way synonyms in Typesense. Here is the situation: • I defined the following synonym group ["urad", "udad", "black lentil"] • When I search for "urad", I get correct matches like "black lentil" but also irrelevant results like "black grapes" • I believe this happens because "black lentil" is tokenized into ["black", "lentil"], so the token "black" matches unrelated items like "black grapes" • I want searching for "urad" to return only relevant results such as "black lentil" and "urad whole" • It should not return unrelated results containing just the word "black" like "black grapes" • Searching for "black lentil" should return results related to "urad" (reverse synonym matching) • What I have tried so far: ◦ Using multi-way synonyms as above ◦ Replacing "black lentil" with "black_lentil" in synonyms to avoid tokenization issues. But after doing this: ▪︎ Searching for "urad" returns "urad whole" but not "black lentil" ▪︎ Searching for "black lentil" does not return "urad" How do I overcome this issue and achieve accurate synonym-based matching without irrelevant results? Please guide me. Thanks!
f
We recently fixed a problem with multi-way synonyms and multiple tokens in the synonym. Can you try upgrading to the latest RC build?
29.0.rc26
is the latest one currently.
m
Okay
Hi, I’ve upgraded my dev environment to Typesense v0.29.0.rc26 as suggested, but I’m still seeing the same issue I mentioned earlier.
f
Are you self-hosting or are you on Typesense Cloud?
m
Typesense Cloud
f
Can you give me your cluster's ID?
m
vjzoc4yu2fq3k7rmp
f
Can you create a minimal example that reproduces this issue using the following format? https://gist.github.com/jasonbosco/7c3432713216c378472f13e72246f46b With a few sample docs and the synonyms in place
m
please check sample data for reproducing
Any Update
f
We'll have to debug to find what's causing this issue. We'll get back to you when we have a fix.
Can you try updating to rc26? I can't seem to reproduce the issue on that build.