You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jb...@apache.org on 2021/01/07 16:05:22 UTC

[lucene-solr] branch jira/SOLR-14608-export updated: SOLR-14608: Fix tie-break in SortDoc, TestExportWriter now passing.

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

jbernste pushed a commit to branch jira/SOLR-14608-export
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/jira/SOLR-14608-export by this push:
     new 66f85c5  SOLR-14608: Fix tie-break in SortDoc, TestExportWriter now passing.
66f85c5 is described below

commit 66f85c550691fcb3b4ee1959c7ed1695aed3cb78
Author: Joel Bernstein <jb...@apache.org>
AuthorDate: Thu Jan 7 11:04:18 2021 -0500

    SOLR-14608: Fix tie-break in SortDoc, TestExportWriter now passing.
---
 solr/core/src/java/org/apache/solr/handler/export/SortDoc.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/core/src/java/org/apache/solr/handler/export/SortDoc.java b/solr/core/src/java/org/apache/solr/handler/export/SortDoc.java
index d0022c7..377266a1 100644
--- a/solr/core/src/java/org/apache/solr/handler/export/SortDoc.java
+++ b/solr/core/src/java/org/apache/solr/handler/export/SortDoc.java
@@ -135,7 +135,7 @@ class SortDoc implements Comparable<SortDoc> {
         return comp;
       }
     }
-    return docId + docBase - sd.docId - sd.docBase;
+    return (sd.docId + sd.docBase) - (docId + docBase);
   }
 
   public String toString() {