#community-help

Adjusting Search Settings for Typo Matches

TLDR Digamber needed help with search results for document titles containing typos. Kishore Nallan explained adjusting min_len_1typo and min_len_2typo settings, but warned against potential false positives.

Powered by Struct AI
Mar 20, 2023 (9 months ago)
Digamber
Photo of md5-a0246423746b3b51425d05cfd9c494ae
Digamber
08:24 AM
Additionally, i’m looking for some guidance too -
I have a document call Pink Sundress
when i search for Pink it comes up (as expected)
but when i search for it as “pnk”
No results are coming up.
I’ve tried setting “exhaustive_search” to true
as well as changing num_typos
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:26 AM
For this you have to decrease min_len_1typo. But I'll caution against doing this because it can produce a lot of false positives also.
Digamber
Photo of md5-a0246423746b3b51425d05cfd9c494ae
Digamber
08:36 AM
Hmm - abit confused here the default num_typos should be 2 right so Pink vs pnk would be 1 typo right ?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:40 AM
Yes, but min_len_1typo controls the minimum length of a word that will make it eligible for a 1-typo match. Likewise min_len_2typo for 2 typo match. Defaults for those two are 4 and 7 respectively.
Digamber
Photo of md5-a0246423746b3b51425d05cfd9c494ae
Digamber
08:42 AM
Ah i understand now thanks