From cf8c363f8eb25cb30865ac422d3735609d25964d Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Tue, 10 Mar 2015 22:25:29 +0000 Subject: [PATCH] SOLR-6349: real fix for out of order stats facet's git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1665730 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/solr/TestDistributedSearch.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/TestDistributedSearch.java b/solr/core/src/test/org/apache/solr/TestDistributedSearch.java index 44803d949f0..9bf807d5b18 100644 --- a/solr/core/src/test/org/apache/solr/TestDistributedSearch.java +++ b/solr/core/src/test/org/apache/solr/TestDistributedSearch.java @@ -877,9 +877,7 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase { indexr("id", "5", fieldName, "Critical"); commit(); - - handle.put("stats_fields", UNORDERED); // this is stupid, but stats.facet doesn't garuntee order - + rsp = query("q", "*:*", "stats", "true", "stats.field", fieldName); assertEquals(new EnumFieldValue(0, "Not Available"), rsp.getFieldStatsInfo().get(fieldName).getMin()); @@ -887,6 +885,8 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase { StatsParams.STATS_CALC_DISTINCT, "true"); assertEquals(new EnumFieldValue(4, "Critical"), rsp.getFieldStatsInfo().get(fieldName).getMax()); + + handle.put("severity", UNORDERED); // this is stupid, but stats.facet doesn't garuntee order query("q", "*:*", "stats", "true", "stats.field", fieldName, "stats.facet", fieldName); }