Resolving Typo Tolerance in Search Functionality
TLDR GM asked how to refine a search query. Jason advised on how to control typo tolerance parameters. GM confirmed the solution worked.
1
Jul 27, 2023 (4 months ago)
GM
08:03 PMHi Team ,this is my code searchParameters.q = `~${category}~`;
searchParameters.query_by = 'category'; if i search "burg" i am getting "burn" also photic values too. How to restrict. Contain search i am trying
Jason Kishore Nallan
Jason
08:07 PMnum_typos
, min_len_1typo
, min_len_2typo
and typo_tokens_threshold
parameters: https://typesense.org/docs/0.24.1/api/search.html#typo-tolerance-parametersIf you want to turn off typo tolerance, you want to set
num_typos: 0
and typo_tokens_threshold: 0
GM
08:09 PMJul 31, 2023 (4 months ago)
GM
02:46 PM1
Typesense
Indexed 3005 threads (79% resolved)
Similar Threads
Disabling Typo Tolerance in Query
Ahmad tries to disable typo tolerance without success. Jason and Sabyasachi give suggestions. The issue is ultimately revealed by Kishore Nallan to be due to a new feature in the beta build.
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.
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.