You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by cp...@apache.org on 2021/07/22 17:14:38 UTC

[solr] branch main updated: SOLR-15537: remove deprecated 10-args LTRRescorer.scoreSingleHit method

This is an automated email from the ASF dual-hosted git repository.

cpoerschke pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new db7b104  SOLR-15537: remove deprecated 10-args LTRRescorer.scoreSingleHit method
db7b104 is described below

commit db7b104a0230a26e534ae68411fbdd33a6023027
Author: Christine Poerschke <cp...@apache.org>
AuthorDate: Thu Jul 22 17:41:23 2021 +0100

    SOLR-15537: remove deprecated 10-args LTRRescorer.scoreSingleHit method
---
 .../contrib/ltr/src/java/org/apache/solr/ltr/LTRRescorer.java | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/solr/contrib/ltr/src/java/org/apache/solr/ltr/LTRRescorer.java b/solr/contrib/ltr/src/java/org/apache/solr/ltr/LTRRescorer.java
index 0f1f2c9..4909a6f 100644
--- a/solr/contrib/ltr/src/java/org/apache/solr/ltr/LTRRescorer.java
+++ b/solr/contrib/ltr/src/java/org/apache/solr/ltr/LTRRescorer.java
@@ -186,17 +186,6 @@ public class LTRRescorer extends Rescorer {
   }
 
   /**
-   * @deprecated Use {@link #scoreSingleHit(int, int, int, ScoreDoc, int, org.apache.solr.ltr.LTRScoringQuery.ModelWeight.ModelScorer, ScoreDoc[])}
-   * and {@link #logSingleHit(IndexSearcher, org.apache.solr.ltr.LTRScoringQuery.ModelWeight, int, LTRScoringQuery)} instead.
-   */
-  @Deprecated
-  protected static void scoreSingleHit(IndexSearcher indexSearcher, int topN, LTRScoringQuery.ModelWeight modelWeight, int docBase, int hitUpto, ScoreDoc hit, int docID, LTRScoringQuery rerankingQuery, LTRScoringQuery.ModelWeight.ModelScorer scorer, ScoreDoc[] reranked) throws IOException {
-    if (scoreSingleHit(topN, docBase, hitUpto, hit, docID, scorer, reranked)) {
-      logSingleHit(indexSearcher, modelWeight, hit.doc, rerankingQuery);
-    }
-  }
-
-  /**
    * Call this method if the {@link #scoreSingleHit(int, int, int, ScoreDoc, int, org.apache.solr.ltr.LTRScoringQuery.ModelWeight.ModelScorer, ScoreDoc[])}
    * method indicated that the document's feature info should be logged.
    */