You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by so...@apache.org on 2026/04/27 12:18:09 UTC
(lucene) branch branch_10x updated: Restore (inadvertently disabled) random testing of term vectors
This is an automated email from the ASF dual-hosted git repository.
msokolov pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_10x by this push:
new 8e0466be116 Restore (inadvertently disabled) random testing of term vectors
8e0466be116 is described below
commit 8e0466be1161215c8540e9c59e260958331823cf
Author: Michael Sokolov <so...@amazon.com>
AuthorDate: Mon Apr 27 08:08:47 2026 -0400
Restore (inadvertently disabled) random testing of term vectors
---
.../src/java/org/apache/lucene/tests/util/LuceneTestCase.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.java
index 5fe56995269..eaaf1ca7563 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.java
@@ -1545,8 +1545,9 @@ public abstract class LuceneTestCase extends Assert {
if (!newType.stored() && random.nextBoolean()) {
newType.setStored(true); // randomly store it
}
- if (newType.indexOptions() != IndexOptions.NONE) {
- if (!newType.storeTermVectors() && random.nextBoolean() && false) {
+ if (newType.indexOptions() != IndexOptions.NONE
+ && newType.indexOptions() != IndexOptions.DOCS_AND_CUSTOM_FREQS) {
+ if (!newType.storeTermVectors() && random.nextBoolean()) {
newType.setStoreTermVectors(true);
if (!newType.storeTermVectorPositions()) {
newType.setStoreTermVectorPositions(random.nextBoolean());