I'm having trouble with filtering. I am using the ...
# community-help
l
I'm having trouble with filtering. I am using the same search throughout but when I filter by "sold: true" I get 20 results, when I filter by "sold:false" i get 67 results. But when I search with no filter it returns 56 results
k
I think this might just be the fuzzy query relaxation kicking in. Can you try setting
drop_tokens_threshold: 1
and
typo_tokens_threshold: 1
when making the queries? Basically Typesense expands the search universe to fetch more items when enough results are not found. This can also happen during prefix searches on very small prefixes like single char/two char tokens.
l
okay thank you
added those fields, it now returns 4 for false and 8 for true
@Kishore Nallan any idea why this is?
k
Would need more details. If you can create a small reproduceable sample dataset, please share that with me + query so I can investigate.