mirror of https://github.com/apache/lucene.git
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr
This commit is contained in:
commit
61c612efd7
|
@ -620,6 +620,8 @@ when using one of Exact*StatsCache (Mikhail Khludnev)
|
|||
|
||||
* SOLR-10914: RecoveryStrategy's sendPrepRecoveryCmd can get stuck for 5 minutes if leader is unloaded. (shalin)
|
||||
|
||||
* SOLR-11024: ParallelStream should set the StreamContext when constructing SolrStreams (Joel Bernstein)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
* SOLR-10634: JSON Facet API: When a field/terms facet will retrieve all buckets (i.e. limit:-1)
|
||||
|
|
|
@ -1185,7 +1185,7 @@ public class TestPointFields extends SolrTestCaseJ4 {
|
|||
do {
|
||||
values = getRandomLongs(numValues, false);
|
||||
sortedValues = values.stream().sorted().collect(Collectors.toList());
|
||||
} while ((max = sortedValues.get(sortedValues.size() - 1)) >= Integer.MAX_VALUE - numValues); // leave room for rounding
|
||||
} while ((max = sortedValues.get(sortedValues.size() - 1)) >= Long.MAX_VALUE - numValues); // leave room for rounding
|
||||
long min = sortedValues.get(0);
|
||||
long gap = BigInteger.valueOf(max + numValues).subtract(BigInteger.valueOf(min))
|
||||
.divide(BigInteger.valueOf(numBuckets)).longValueExact();
|
||||
|
@ -2195,7 +2195,7 @@ public class TestPointFields extends SolrTestCaseJ4 {
|
|||
assertTrue(h.getCore().getLatestSchema().getField(dvField).hasDocValues());
|
||||
assertTrue(h.getCore().getLatestSchema().getField(dvField).getType() instanceof PointField);
|
||||
assertQ(req("q", "*:*", "fl", "id, " + dvField, "stats", "true", "stats.field", dvField),
|
||||
"//*[@numFound='11']",
|
||||
"//*[@numFound='" + (numbers.length + 1) + "']",
|
||||
"//lst[@name='stats']/lst[@name='stats_fields']/lst[@name='" + dvField+ "']/double[@name='min'][.>=" + minMin + "]",
|
||||
"//lst[@name='stats']/lst[@name='stats_fields']/lst[@name='" + dvField+ "']/double[@name='min'][.<=" + maxMin+ "]",
|
||||
"//lst[@name='stats']/lst[@name='stats_fields']/lst[@name='" + dvField+ "']/double[@name='max'][.>=" + minMax + "]",
|
||||
|
@ -3300,7 +3300,7 @@ public class TestPointFields extends SolrTestCaseJ4 {
|
|||
assertTrue(h.getCore().getLatestSchema().getField(dvField).hasDocValues());
|
||||
assertTrue(h.getCore().getLatestSchema().getField(dvField).getType() instanceof PointField);
|
||||
assertQ(req("q", "*:*", "fl", "id, " + dvField, "stats", "true", "stats.field", dvField),
|
||||
"//*[@numFound='11']",
|
||||
"//*[@numFound='" + (dates.length + 1) + "']",
|
||||
"//lst[@name='stats']/lst[@name='stats_fields']/lst[@name='" + dvField+ "']/date[@name='min'][.='" + dates[0] + "']",
|
||||
"//lst[@name='stats']/lst[@name='stats_fields']/lst[@name='" + dvField+ "']/date[@name='max'][.='" + dates[dates.length-1] + "']",
|
||||
"//lst[@name='stats']/lst[@name='stats_fields']/lst[@name='" + dvField+ "']/long[@name='count'][.='" + dates.length + "']",
|
||||
|
|
Loading…
Reference in New Issue