Revert the last change so we continue using randomize similarity for this test.

This commit is contained in:
Mike McCandless 2016-11-13 17:13:06 -05:00
parent 8fa08f6d32
commit 8104468de4
1 changed files with 1 additions and 3 deletions

View File

@ -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() {