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.
1
Oct 05, 2023 (1 month ago)
John
02:30 PMtext_match_type
from the default max_score
to max_weight
and 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 color
with field weight 10 and product_type
with field weight 1, it'll first rank on color=black
, but surely the match on product_type
must be used for some tie breaking? Sorry if the question is unclear, it's a bit confusing to me 🙂John
02:47 PMKishore Nallan
02:57 PM1
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
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.