The Solr "qf" parameter works as follows:
Let's say I have: query = "sid"
and qf = [field1, field1_edge, field2, field2_edge]
.
The Solr score is calculated as follows:
max(f1, f1_e, f2, f2_e) + tie * (sum of other 3 fields)
where: "tie" lies in [0,1]
Let's call: winner1 = field with max(f1, f1_e)
and
winner2 = field with max(f2, f2_e)
I would like to score a given query in Solr as follows:
score1 = winner1_score + tie_1 * loser1_score
score2 = winner2_score + tie_1 * loser2_score
final score = score1 + tie_2 * score2
Effectively, I want to apply qf
in two layers (taking tie_1 = 0 and tie_2 = 1). What are my options to implement this idea of relevance? I think neither "qf" parameter nor function boosts support this.
Thanks!