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.
Mar 20, 2023 (9 months ago)
Digamber
08:24 AMI 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
08:26 AMDigamber
08:36 AMKishore Nallan
08:40 AMmin_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
08:42 AMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Understanding 'max_candidates' and 'num_typos' Parameters in Typesense
Narayan asked about difference between 'max_candidates' and 'num_typos' parameters in typo tolerance within Typesense. Jason referred them to the documentation. Kishore Nallan offered clarity and answered Narayan's follow-up questions, as well as addressed Akash's query about case sensitivity in Typesense.
Understanding Typo Tolerance in Search Queries
gab sought clarity on typo tolerance settings in search operations, specifically on the discrepancy in document returns when typos are involved. Kishore Nallan explained the "num_typos" and "typo_tokens_threshold" parameters within search queries, and how they dictate typo allowance during searches.
Adjusting Typo Tolerance in Search Results
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.