From 2f86255b94dc65c1ac44c77a0e5f8ede049ed137 Mon Sep 17 00:00:00 2001 From: Tomas Fernandez Lobbe Date: Wed, 9 Sep 2020 14:03:37 -0700 Subject: [PATCH] SOLR-14849: Add explicit sort order in testMinExactCount --- .../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 96ccee2d41c..0198efad6d7 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']" - ); } }