#community-help

Disabling Typo Tolerance in Query

TLDR 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.

Powered by Struct AI
Jan 07, 2022 (24 months ago)
Ahmad
Photo of md5-4a6338a1d6016269c9f234fc1a133144
Ahmad
11:55 PM
Hi Everyone, I want to disable the typo tolerance, I am querying with 1 field and I set the { num_typos: 0 } but still its returning the records. How can i disable it completely ?
Jan 08, 2022 (24 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:09 AM
You also want to set typo_tokens_threshold = 0 and drop_tokens_threshold = 0
Ahmad
Photo of md5-4a6338a1d6016269c9f234fc1a133144
Ahmad
12:14 AM
still not working.
Sabyasachi
Photo of md5-3badcffdc9bad0939ba26ebfebc3bd43
Sabyasachi
06:13 AM
Examples should help, what is your query and what’s matching that should not be? Also, try with prefix=False if you want are looking for matching exact query.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:17 AM
We've added a new feature to treat spaces in the query as typos in the beta build that Ahmad is using. This issue is caused by that. Going to introduce a flag to disable that so that you can get exact matches.