[
https://issues.apache.org/jira/browse/SOLR-15496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17385002#comment-17385002
]
ASF subversion and git services commented on SOLR-15496:
--------------------------------------------------------
Commit afdf88680a13996852b8342a3b1781f432577085 in solr's branch
refs/heads/main from Christine Poerschke
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=afdf886 ]
SOLR-15496: remove deprecated LTRRescorer.sortByScore method
> LTRRescorer unnecessarily (re)creates ScoreDoc Comparator objects
> -----------------------------------------------------------------
>
> Key: SOLR-15496
> URL: https://issues.apache.org/jira/browse/SOLR-15496
> Project: Solr
> Issue Type: Task
> Components: ltr
> Reporter: Christine Poerschke
> Priority: Minor
> Labels: newdev
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> Discovered by [~mdrob] whilst reviewing SOLR-14920 changes:
> A static instance of the comparator(s) could be created and reused.
> *
> https://github.com/apache/solr/blob/af0455ac8366d6dba941f2b2674ed2a8245c76f9/solr/contrib/ltr/src/java/org/apache/solr/ltr/LTRRescorer.java#L133-L162
> * https://github.com/apache/solr/pull/189#discussion_r657360363
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]