[ 
https://issues.apache.org/jira/browse/SOLR-18542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18148543#comment-18148543
 ] 

ASF subversion and git services commented on SOLR-18542:
--------------------------------------------------------

Commit 122317abc5921ed7604a17df3639fc170c2739ff in solr's branch 
refs/heads/branch_10x from Puneet Ahuja
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=122317abc59 ]

SOLR-18542: Add weighted RRF for combined queries (#5119)

Support weighted Reciprocal Rank Fusion in Combined Query via 
combiner.rrf.weight.<queryName>.

(cherry picked from commit f2873bb7783d43d636cc4343ac8b7e84d528c493)


> Support weighted RRF in combined queries
> ----------------------------------------
>
>                 Key: SOLR-18542
>                 URL: https://issues.apache.org/jira/browse/SOLR-18542
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: main(11.0)
>            Reporter: Puneet Ahuja
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> Combined Query RRF gives every query list equal weight, so a caller can't 
> favor one list. For example, they can't keep an exact lexical match above a 
> loosely similar vector match. Elasticsearch and OpenSearch both support 
> per-list weights.
> Additionally, {{ReciprocalRankFusion.getRanks}} iterates 
> {{queriesDocMap.values()}} (a {{{}HashMap{}}}) but labels the rank array with 
> {{combiner.query}} keys in request order. When the HashMap iteration order 
> differs from the request order, the debug explain mislabels which rank 
> belongs to which query.
> Solution:
>  * Add {{{}combiner.rrf.weight.<queryName>{}}}, a non-negative multiplier on 
> that query's reciprocal rank contribution that defaults to {{{}1.0{}}}. 
> Requests without it behave exactly as today.
>  * Reject negative weights, and weights for names that aren't in 
> {{{}combiner.query{}}}.
>  * Make {{getRanks}} iterate in {{combiner.query}} order, so each rank and 
> weight in the explain lines up with the right query.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

  • [jira] [Commented] (SOLR... ASF subversion and git services (Jira) via issues
    • [jira] [Commented] ... ASF subversion and git services (Jira) via issues

Reply via email to