SOLR-10474: TestPointFields.testPointFieldReturn() depends on order of unsorted hits

This commit is contained in:
Steve Rowe 2017-04-10 15:26:28 -04:00
parent ce66ca93cf
commit e02a1f159e
2 changed files with 4 additions and 2 deletions

View File

@ -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
----------------------

View File

@ -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);