em1nos
08/01/2021, 3:06 PMdrop_tokens_threshold
and typo_tokens_threshold
work. I've read the docs about it but I'm not sure I understand it fully.Kishore Nallan
08/01/2021, 3:13 PMtypo_tokens_threshold: X
you are telling Typesense to continue generating alternative tokens from the tokens in the query that are within an edit distance of num_typos
until you find atleast X results. You want to stop at some point, because you can keep modifying the query tokens to generate a lot of alternative tokens.
Similarly, there might be no documents that contains all tokens in the query. In that case, Typesense tries to drop tokens in the query, for e.g. searching only for "beta gamma" to find relevant documents. When you set drop_tokens_threshold: X
you are telling Typesense to continue dropping tokens from the query until X results are found.em1nos
08/01/2021, 3:33 PMKishore Nallan
08/01/2021, 3:34 PMem1nos
08/01/2021, 3:34 PMem1nos
08/01/2021, 3:34 PMKishore Nallan
08/01/2021, 3:34 PMKishore Nallan
08/01/2021, 3:35 PMdrop_tokens_num_docs
or something.em1nos
08/01/2021, 3:35 PMem1nos
08/01/2021, 3:36 PMnum_typos
play together with these previous settings?Kishore Nallan
08/01/2021, 3:36 PMnum_typos
is the maximum number of typos (0, 1, 2) allowed.Kishore Nallan
08/01/2021, 3:37 PMem1nos
08/01/2021, 7:03 PMem1nos
08/01/2021, 7:04 PMKishore Nallan
08/02/2021, 1:19 AM