Hey, I tried switching `text_match_type` from the ...
# community-help
j
Hey, I tried switching
text_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 🙂
I think I found the relevant code which helps me understand. But intuitively I would've thought that the scoring is based on some linear combination of the matches in the fields with the field weights as coefficients. It's that something you've considered and scrapped? Would be interested to hear!
k
Linear combination with weights didn't work. What we arrived is through trial and error which broadly seems to work well across a variety of different use cases.
🙌 1