This message was deleted.
# community-help
s
This message was deleted.
j
This is due to
drop_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 well
a
Hi Jason,
Copy code
which is below drop_tokens_threshold
below or above? i am a bit confused. I documentation I found out:
Copy code
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?
j
below 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.
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?
Enough is whatever you’ve configured the value of
typo_tokens_threshold
to
a
what is the mechanism for typo_tokens_threshold and when does it activate? is it same as drop_tokens_threshold ? between these two, which one has higher precedence?
j
It’s very similar to drop tokens. If you set
typo_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 corrections
a
do these two configs (drop_tokens_threshold, typo_tokens_threshold) run parallel?
j
typo_tokens_threshold
runs first, followed by
drop_tokens_threshold