Slackbot
08/22/2023, 3:23 PMJason Bosco
08/22/2023, 5:22 PMdrop_tokens_threshold: 2.
When no filters are applied “3d printing” is found in at least 4 documents, which is below drop_tokens_threshold, so Typesense stops the search at that point.
But when a filter of `"author_email_domain:=[amd.com]“` is applied, there are 0 documents with both keywords 3d printing in the document. So drop_tokens_threshold kicks-in, and “printing” is dropped and the search is done for just “3d”.
If you set drop_tokens_threshold: 100 for eg, you should see more results for the no-filter search as wellAshraful Islam Mahim
08/24/2023, 1:48 PMwhich is below drop_tokens_threshold
below or above? i am a bit confused.
I documentation I found out:
typo_tokens_threshold: ypesense will attempt to look for results with more typos until num_typos is reached or enough results are found.
what is the definition of enough here?Jason Bosco
08/24/2023, 3:53 PMbelow or above?Below. If you set
drop_tokens_threshold: N and search for wordA wordB, that tells Typesense if at least N records with both wordA and wordB in the same record are not found, then drop wordB and search for records with just wordA. Keep dropping keywords like this left to right and right to left, until at least N records are found.Jason Bosco
08/24/2023, 3:54 PMI documentation I found out:
typo_tokens_threshold: ypesense will attempt to look for results with more typos until num_typos is reached or enough results are found.
what is the definition of enough here?Enough is whatever you’ve configured the value of
typo_tokens_threshold toAshraful Islam Mahim
08/25/2023, 7:41 AMJason Bosco
08/25/2023, 3:57 PMtypo_tokens_threshold: N, that tells Typesense if at least N records are not found for a search term, then start looking for typo-corrected variations, until N records are found, up to a maximum of num_typo number of correctionsAshraful Islam Mahim
08/28/2023, 8:30 AMJason Bosco
08/28/2023, 3:45 PMtypo_tokens_threshold runs first, followed by drop_tokens_threshold