alessandrobenedetti commented on PR #13470:
URL: https://github.com/apache/lucene/pull/13470#issuecomment-2156437678

   I'm not sure 'rrf' should be a direct method in topDocs:
   Reciprocal Rank Fusion is just one way of combining result sets, if in the 
future we want to add other algorithms having 'rrf' there may encourage to just 
add and add to topDocs.
   What about having a "combine" method there, potentially taking in input the 
combining strategy?
   Then abstract the combining strategy as an interface/abstract class and 
implement Reciprocal Rank Fusion as the first available strategy? That should 
ease the process of adding more strategies and prevent TopDocs to become too 
dirty in the future.
   
   N.B. I am generally in favour of "You are Not Gonna Need It' approach, but 
in Lucene's instance we have many contributors and future contributors that may 
get involved, and doing this abstraction work  when and if "a second strategy" 
gets implemented may not happen


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to