You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ab...@apache.org on 2021/05/11 13:49:59 UTC

[solr] branch jira/OSC-123 created (now c2481d8)

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

abenedetti pushed a change to branch jira/OSC-123
in repository https://gitbox.apache.org/repos/asf/solr.git.


      at c2481d8  [OSC-1] sample commit

This branch includes the following new commits:

     new c2481d8  [OSC-1] sample commit

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[solr] 01/01: [OSC-1] sample commit

Posted by ab...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

abenedetti pushed a commit to branch jira/OSC-123
in repository https://gitbox.apache.org/repos/asf/solr.git

commit c2481d847631a0be99a496ed067dbf535220fc65
Author: Alessandro Benedetti <a....@sease.io>
AuthorDate: Tue May 11 14:49:11 2021 +0100

    [OSC-1] sample commit
---
 .../apache/solr/ltr/interleaving/algorithms/TeamDraftInterleaving.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/contrib/ltr/src/java/org/apache/solr/ltr/interleaving/algorithms/TeamDraftInterleaving.java b/solr/contrib/ltr/src/java/org/apache/solr/ltr/interleaving/algorithms/TeamDraftInterleaving.java
index a9cd38a..c915375 100644
--- a/solr/contrib/ltr/src/java/org/apache/solr/ltr/interleaving/algorithms/TeamDraftInterleaving.java
+++ b/solr/contrib/ltr/src/java/org/apache/solr/ltr/interleaving/algorithms/TeamDraftInterleaving.java
@@ -84,7 +84,7 @@ public class TeamDraftInterleaving implements Interleaving {
     Set<Integer> teamA = new HashSet<>();
     Set<Integer> teamB = new HashSet<>();
     int topN = rerankedA.length;
-    int indexA = 0, indexB = 0;
+    int indexA = 0, indexB = 0; //I am change from the fork
 
     while (interleavedResults.size() < topN && indexA < rerankedA.length && indexB < rerankedB.length) {
       if(teamA.size()<teamB.size() || (teamA.size()==teamB.size() && !RANDOM.nextBoolean())){