Adjusting Search Settings for Typo Matches
TLDR Digamber needed help with search results for document titles containing typos. Kishore Nallan explained adjusting
min_len_2typo settings, but warned against potential false positives.
Mar 20, 2023 (9 months ago)
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 Nallan08:26 AM
Kishore Nallan08:40 AM
min_len_1typocontrols the minimum length of a word that will make it eligible for a 1-typo match. Likewise
min_len_2typofor 2 typo match. Defaults for those two are 4 and 7 respectively.
Indexed 3015 threads (79% resolved)
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.