#community-help

Troubleshooting Typo Search Functionality in TS

TLDR Martin had issues with typo search in TS. However, it turned out to be a problem with a downstream system after Kishore Nallan assisted with various solutions.

Powered by Struct AI

1

9
1mo
Solved
Join the chat
Aug 17, 2023 (1 month ago)
Martin
Photo of md5-72685a9cf9eb7a9f6d6e9fd487bfd831
Martin
12:24 PM
Hey folks, we're currently evaluating TS and it looks great overall but somehow we can't get typo search to work at all. If I search for spongeb I get results for Spongebob, but when I search for spongebb (additional b at the end), then I get zero results.
I already tried changing typo_tokens_threshold to 2 or 3 and change the min limits, but nothing.
Any ideas what I might be doing wrong?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:39 PM
Try reducing default value for min_len_2typo which set to 7.
Martin
Photo of md5-72685a9cf9eb7a9f6d6e9fd487bfd831
Martin
12:39 PM
thanks, I already reduced that to 5 and no difference
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:39 PM
There's also min_len_1typo
Martin
Photo of md5-72685a9cf9eb7a9f6d6e9fd487bfd831
Martin
12:39 PM
I set that to 2
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:40 PM
Are you doing a prefix search? (if you don't send prefix=false it's a prefix search)
Martin
Photo of md5-72685a9cf9eb7a9f6d6e9fd487bfd831
Martin
12:40 PM
I don't set this, so seems I am
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:54 PM
I just tried reproducing this with a single record but could not. Can you post a small fully reproduceable snippet?
Aug 18, 2023 (1 month ago)
Martin
Photo of md5-72685a9cf9eb7a9f6d6e9fd487bfd831
Martin
07:01 AM
it turned out I fooled myself and it was actually an issue with a downstream system. Thanks for your help anyway!

1