diff --git a/lucene/test-framework/src/java/org/apache/lucene/search/similarities/RandomSimilarity.java b/lucene/test-framework/src/java/org/apache/lucene/search/similarities/RandomSimilarity.java index 43b6c3cae31..4bfe4b899e1 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/search/similarities/RandomSimilarity.java +++ b/lucene/test-framework/src/java/org/apache/lucene/search/similarities/RandomSimilarity.java @@ -91,7 +91,8 @@ public class RandomSimilarity extends PerFieldSimilarityWrapper { allSims = new ArrayList<>(); allSims.add(new ClassicSimilarity()); allSims.add(new BM25Similarity()); - allSims.add(new BooleanSimilarity()); + // We cannot do this, because this similarity behaves in "non-traditional" ways: + // allSims.add(new BooleanSimilarity()); for (BasicModel basicModel : BASIC_MODELS) { for (AfterEffect afterEffect : AFTER_EFFECTS) { for (Normalization normalization : NORMALIZATIONS) {