From 8104468de4c6a5a8cda7860c26313e79306d8c91 Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Sun, 13 Nov 2016 17:13:06 -0500 Subject: [PATCH] Revert the last change so we continue using randomize similarity for this test. --- .../core/src/test/org/apache/lucene/search/TestDocBoost.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/search/TestDocBoost.java b/lucene/core/src/test/org/apache/lucene/search/TestDocBoost.java index 1621f314b59..ecc46454194 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestDocBoost.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestDocBoost.java @@ -21,11 +21,10 @@ import java.io.IOException; import org.apache.lucene.analysis.MockAnalyzer; import org.apache.lucene.document.*; -import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.LeafReaderContext; +import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.RandomIndexWriter; import org.apache.lucene.index.Term; -import org.apache.lucene.search.similarities.BM25Similarity; import org.apache.lucene.store.Directory; import org.apache.lucene.util.LuceneTestCase; @@ -58,7 +57,6 @@ public class TestDocBoost extends LuceneTestCase { final float[] scores = new float[4]; IndexSearcher searcher = newSearcher(reader); - searcher.setSimilarity(new BM25Similarity()); searcher.search (new TermQuery(new Term("field", "word")), new SimpleCollector() {