You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by tf...@apache.org on 2020/09/09 21:05:13 UTC

[lucene-solr] branch branch_8x updated: SOLR-14849: Add explicit sort order in testMinExactCount

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

tflobbe pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new 35b4857  SOLR-14849: Add explicit sort order in testMinExactCount
35b4857 is described below

commit 35b48572a755bef1e5cdaaea99161cf852620656
Author: Tomas Fernandez Lobbe <tf...@apache.org>
AuthorDate: Wed Sep 9 14:03:37 2020 -0700

    SOLR-14849: Add explicit sort order in testMinExactCount
---
 .../apache/solr/search/TestReRankQParserPlugin.java  | 20 ++------------------
 1 file changed, 2 insertions(+), 18 deletions(-)

diff --git a/solr/core/src/test/org/apache/solr/search/TestReRankQParserPlugin.java b/solr/core/src/test/org/apache/solr/search/TestReRankQParserPlugin.java
index 96ccee2..0198efa 100644
--- a/solr/core/src/test/org/apache/solr/search/TestReRankQParserPlugin.java
+++ b/solr/core/src/test/org/apache/solr/search/TestReRankQParserPlugin.java
@@ -671,7 +671,8 @@ public class TestReRankQParserPlugin extends SolrTestCaseJ4 {
     params.add("q", "field_t:0");
     params.add("start", "0");
     params.add("rows", "10");
-    params.add("fl", "id");
+    params.add("fl", "id,score");
+    params.add("sort", "score desc, id_p_i asc");
     assertQ(req(params),
         "*[count(//doc)=10]",
         "//result[@numFound='" + numDocs + "']",
@@ -722,23 +723,6 @@ public class TestReRankQParserPlugin extends SolrTestCaseJ4 {
         "//result/doc[9]/str[@name='id'][.='7']",
         "//result/doc[10]/str[@name='id'][.='8']"
         );
-    
-    params.add("sort", "score desc, id_p_i asc");
-    assertQ(req(params),
-        "*[count(//doc)=10]",
-        "//result[@numFound<='" + numDocs + "']",
-        "//result[@numFoundExact='false']",
-        "//result/doc[1]/str[@name='id'][.='10']",
-        "//result/doc[2]/str[@name='id'][.='0']",
-        "//result/doc[3]/str[@name='id'][.='1']",
-        "//result/doc[4]/str[@name='id'][.='2']",
-        "//result/doc[5]/str[@name='id'][.='3']",
-        "//result/doc[6]/str[@name='id'][.='4']",
-        "//result/doc[7]/str[@name='id'][.='5']",
-        "//result/doc[8]/str[@name='id'][.='6']",
-        "//result/doc[9]/str[@name='id'][.='7']",
-        "//result/doc[10]/str[@name='id'][.='8']"
-        );
   }
 
 }