mirror of https://github.com/apache/lucene.git
SOLR-10474: TestPointFields.testPointFieldReturn() depends on order of unsorted hits
This commit is contained in:
parent
ce66ca93cf
commit
e02a1f159e
|
@ -169,6 +169,8 @@ Bug Fixes
|
|||
* SOLR-8807: fix Spellcheck "collateMaxCollectDocs" parameter to work with queries that have the
|
||||
CollpasingQParserPlugin applied. (James Dyer)
|
||||
|
||||
* SOLR-10474: TestPointFields.testPointFieldReturn() depends on order of unsorted hits. (Steve Rowe)
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -1140,8 +1140,8 @@ public class TestPointFields extends SolrTestCaseJ4 {
|
|||
assertU(commit());
|
||||
String[] expected = new String[values.length + 1];
|
||||
expected[0] = "//*[@numFound='" + values.length + "']";
|
||||
for (int i = 1; i <= values.length; i++) {
|
||||
expected[i] = "//result/doc[" + i + "]/" + type + "[@name='" + field + "'][.='" + values[i-1] + "']";
|
||||
for (int i = 0; i < values.length; i++) {
|
||||
expected[i + 1] = "//result/doc[str[@name='id']='" + i + "']/" + type + "[@name='" + field + "'][.='" + values[i] + "']";
|
||||
}
|
||||
assertQ(req("q", "*:*", "fl", "id, " + field, "rows", String.valueOf(values.length)), expected);
|
||||
|
||||
|
|
Loading…
Reference in New Issue