You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by pa...@apache.org on 2022/12/31 01:06:35 UTC

[lucene] branch branch_9x updated: Fix incompatible api used when backporting fix for TestRangeOnRangeFacetCounts

This is an automated email from the ASF dual-hosted git repository.

patrickz pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 9f6d9b51416 Fix incompatible api used when backporting fix for TestRangeOnRangeFacetCounts
9f6d9b51416 is described below

commit 9f6d9b51416f92c6d98444e15b126cc870b00ebb
Author: Patrick Zhai <zh...@gmail.com>
AuthorDate: Fri Dec 30 17:06:13 2022 -0800

    Fix incompatible api used when backporting fix for TestRangeOnRangeFacetCounts
---
 lucene/core/build.gradle                                              | 2 ++
 .../apache/lucene/facet/rangeonrange/TestRangeOnRangeFacetCounts.java | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lucene/core/build.gradle b/lucene/core/build.gradle
index e55c0853f61..604fae952bb 100644
--- a/lucene/core/build.gradle
+++ b/lucene/core/build.gradle
@@ -23,3 +23,5 @@ dependencies {
   moduleTestImplementation project(':lucene:codecs')
   moduleTestImplementation project(':lucene:test-framework')
 }
+sourceCompatibility = JavaVersion.VERSION_18
+targetCompatibility = JavaVersion.VERSION_18
diff --git a/lucene/facet/src/test/org/apache/lucene/facet/rangeonrange/TestRangeOnRangeFacetCounts.java b/lucene/facet/src/test/org/apache/lucene/facet/rangeonrange/TestRangeOnRangeFacetCounts.java
index 738b14e71ff..dacc64013e0 100644
--- a/lucene/facet/src/test/org/apache/lucene/facet/rangeonrange/TestRangeOnRangeFacetCounts.java
+++ b/lucene/facet/src/test/org/apache/lucene/facet/rangeonrange/TestRangeOnRangeFacetCounts.java
@@ -1001,7 +1001,7 @@ public class TestRangeOnRangeFacetCounts extends FacetTestCase {
     RandomIndexWriter w = new RandomIndexWriter(random(), dir);
 
     int numDocs = atLeast(1000);
-    int dims = random().nextInt(2, 5);
+    int dims = 2 + random().nextInt(3);
     if (VERBOSE) {
       System.out.println("TEST: numDocs=" + numDocs);
     }
@@ -1318,7 +1318,7 @@ public class TestRangeOnRangeFacetCounts extends FacetTestCase {
     RandomIndexWriter w = new RandomIndexWriter(random(), dir);
 
     int numDocs = atLeast(1000);
-    int dims = random().nextInt(2, 5);
+    int dims = 2 + random().nextInt(3);
     if (VERBOSE) {
       System.out.println("TEST: numDocs=" + numDocs);
     }