#community-help

Resolving Regression Issue in Typesense

TLDR John reported a regression issue related to Typesense versions. Kishore Nallan identified a change in the API that was causing this, and provided a solution, which solved the issue for John.

Powered by Struct AI

1

Nov 24, 2022 (13 months ago)
John
Photo of md5-21545f1facb7836c149bc4c70752bd2b
John
12:51 PM
Hmm, seems like there might be a regression related to this issue. It works on typesense/typesense:0.24.0.rc19 but not on typesense/typesense:0.24.0.rcn34 for me. Or is rcn34 not a successor to rc19?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:54 PM
It should work on 0.24.0.rcn34 (yes its the successor) and I even have a test case for this now. I will check shortly.
01:13
Kishore Nallan
01:13 PM
John Figured this out. We had to change the API recently to also add a symbols_to_index property to synonyms. So it needs to be like this:

curl "" -X PUT \
-H "Content-Type: application/json" \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" -d '{
    "synonyms": ["+", "plus"],
    "symbols_to_index": ["+"]
}'
John
Photo of md5-21545f1facb7836c149bc4c70752bd2b
John
01:14 PM
Awesome, that works! Thank you 🙂

1