Achieving Desired Query Results in Typesense
TLDR Timothy asked how to include documents containing any query term in Typesense. Jason explained that by adjusting the drop_tokens_threshold
, this behaviour can be achieved.
1
Sep 21, 2022 (15 months ago)
Timothy
03:01 PMJason
03:05 PMwhere the value for “Enough” results is controlled by the
drop_tokens_threshold
parameter. This is documented in the last row of this table: https://typesense.org/docs/0.23.1/api/search.html#typo-tolerance-parametersJason
03:06 PMdrop_tokens_threshold
to a very high value (higher than the total number of records in your dataset), you’ll get the behavior you’re looking for.Timothy
05:55 PM1
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
Issue with Search Term Results in Typesense
Dipankar had issues with specific search terms returning unexpected results. Kishore Nallan clarified why this may occur and how to fine-tune the behavior using the 'drop_tokens_threshold' parameter in Typesense.
Resolving Typesense Search Issues
Conversation started by Maximilian about Typesense search behavior led to Users Kishore Nallan and Mike discussing and suggesting workaround, with Kishore Nallan promising an official solution soon. No final confirmation of resolution provided.
Understanding Typesense Query Fuzziness and Thresholds
Ashraful was confused about different query results when applying filters in Typesense. Jason clarified the function of `drop_tokens_threshold` and `typo_tokens_threshold` options, explaining their effect on search results and their precedence.