Text Match Score Calibration for Near Exact Matches

TLDR Richard asked about calibrating text match score for near exact matches. Jason explained its purpose and suggested parameters for exact matches, referring to Typesense documentation.

Photo of Richard
Richard
Fri, 11 Aug 2023 16:05:50 UTC

How do I calibrate what text match score I should be filtering on if I want near exactly matches (on a subset of tokens)?

Photo of Jason
Jason
Fri, 11 Aug 2023 18:14:43 UTC

Text match score is only intended for ordering, and not meant to represent the degree of match (since we use bit packing to store different match critiera)

Photo of Jason
Jason
Fri, 11 Aug 2023 18:15:55 UTC

If you only want exact matches, you can try these parameters: ```num_typos: 0 typo_tokens_threshold: 0 drop_tokens_threshold: 0 prefix: false```

Photo of Jason
Jason
Fri, 11 Aug 2023 18:17:07 UTC

Documented under the tables here: