#community-help

Adjusting Typo Tolerance in Search Results

TLDR Sean asked how to reduce irrelevant search results. Jason explained how to adjust the typo tolerance feature. Kishore Nallan elaborated on upcoming changes, to which Arthur requested further tunability. Kishore Nallan confirmed such configuration will be available.

Powered by Struct AI

2

1

7
26mo
Solved
Join the chat
Sep 22, 2021 (26 months ago)
Sean
Photo of md5-6519cffc2323728de8a8852857994f9d
Sean
06:57 PM
Hi. Is if possible to hide non relevant results? Like with a search of “tag” - a “tub” result comes up below the “tag” result — thx
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:09 PM
Sean That's the typo tolerance feature kicking in.

You can reduce its sensitivity using one or more of these search params:

typo_tokens_threshold, num_typos, drop_tokens_threshold
Sean
Photo of md5-6519cffc2323728de8a8852857994f9d
Sean
09:51 PM
Awesome. Thx
Sep 23, 2021 (26 months ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:32 AM
Sean In the next version of Typesense we have made the typo tolerance more sensitive to prevent mis-searching in small words. We are enabling 1-typos only from 3-letter words and 2 typos from 7-letter words.

2

Sep 27, 2021 (26 months ago)
Arthur
Photo of md5-827f893afb4a2ab66b64b7f22299800b
Arthur
02:32 PM
Kishore Nallan Do you think the feature of "1-typos only from 3-letter words and 2 typos from 7-letter words" could be tuned
02:33
Arthur
02:33 PM
My user makes some many errors typing it is incredible ! I am afraid that 2 typos from 7 will be too little
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:34 PM
Yeah we will make it configurable so as not to break backward compatibility.

1