Understanding `text_match_type` Parameter in Query Optimization
TLDR John sought clarity on how
text_match_type parameter works in search queries, while incorporating field weights for scoring. Kishore Nallan clarified that linear combination with weights had been considered but proved ineffective.
Oct 05, 2023 (1 month ago)
text_match_typefrom the default
max_weightand it seems to improve results for some queries, but I would like to better understand how it works. How does it combine matches on multiple tokens? For example, if you search for "black t-shirt" and we search on
colorwith field weight 10 and
product_typewith field weight 1, it'll first rank on
color=black, but surely the match on
product_typemust be used for some tie breaking? Sorry if the question is unclear, it's a bit confusing to me 🙂
Kishore Nallan02:57 PM
Indexed 3011 threads (79% resolved)
Enhancing Search Term Matching with Query Weight Parameter
John questions if there's a solution to control term matching in search fields despite `query_weight`. Jason suggests an approach whereas Kishore Nallan cites earlier dissatisfaction with similar method but is open to think over alternatives. John further suggests a potential solution but resolution is still pending.
Sorting Search Results Based on Weights
Pantelis wanted to sort search results by weight. Kishore Nallan suggested using "prioritize_exact_match: false" and "text_match_type: 'max_weight'" to achieve the desired result.
Issues With `text_match` Scoring for Search Queries in Typesense
Colin encountered issues with the `text_match` scoring on Typesense v0.23.1. Jason and Kishore Nallan identified a potential issue with numeric overflow in the text match score and applied an unverified patch. The final resolution is unclear.