Hi, I'm attempting to utilize the synonym feature...
# community-help
a
Hi, I'm attempting to utilize the synonym feature in Typesense. While it occasionally functions as intended for certain terms, I've noticed inconsistencies. Upon applying a synonym to a keyword, it gets inserted into Typesense (I've used the retrieve functionality to confirm this), yet its effectiveness varies—it's operational at times, but not consistently so.
k
Please share a minimally reproducible example that show cases the issue
a
Hi @Kishore Nallan, The output I receive after employing the 'retrieve' command is as follows: {'synonyms': [{'id': 'wildcraft-synonyms', 'root': 'wildcraft', 'synonyms': ['bag']}]} I'm utilizing the one-way synonym feature, but its functionality seems inconsistent. Is there a specific time limit within which results are expected after setting a synonym?
k
It should appear immediately.
a
However, it requires over 30 seconds for the synonym to take effect in my system, which runs on Typesense: 27.0.rc1. This timeframe also applies when deleting the synonym.
Here's the synonym I added today at 10:55 AM: {'synonyms': [{'id': 'wildcraft-synonyms', 'root': '', 'synonyms': ['bags']}]} However, as of now (11:05 PM), it hasn't taken effect yet.