gab gab
03/18/2022, 9:54 AM"limit_hits": 6,
"num_typos": 1,
"per_page": 6,
"q": "Linder",
"query_by": "name",
"typo_tokens_threshold": 1
Only one document is returned: the document 1. The document 2 is not returned.
If one typo is allowed with "num_typos", why I'm not getting both document returned?
ThanksKishore Nallan
03/18/2022, 9:59 AM"typo_tokens_threshold": 1
-> this means that you want Typesense to continue searching with more and more typos until atleast 1
document is found. In this case, since Lindenhof
is a zero-typo prefix match, that requirement is satisfied and typo relaxation is not done. If you increased typo_tokens_threshold
to 2, the other result will show up.gab gab
03/18/2022, 10:01 AM"q": "Linder"
param.gab gab
03/18/2022, 11:59 AMKishore Nallan
03/18/2022, 12:01 PMKishore Nallan
03/18/2022, 12:03 PMgab gab
03/18/2022, 12:07 PMKishore Nallan
03/18/2022, 12:12 PMgab gab
03/18/2022, 12:13 PMKishore Nallan
03/18/2022, 12:13 PMgab gab
03/18/2022, 12:17 PMnum_typo:1
typo_tokens_threshold : 10
typo_tokens_threshold would try to allow more typo error until 10 is reached.
So just to be sure, it means in the upper case, if I have only one document with 0 or 1 typo, and 100 other documents with 5 typos. I will get only one result?Kishore Nallan
03/18/2022, 12:19 PMgab gab
03/18/2022, 12:22 PM