mirror of https://github.com/apache/lucene.git
Revert the last change so we continue using randomize similarity for this test.
This commit is contained in:
parent
8fa08f6d32
commit
8104468de4
|
@ -21,11 +21,10 @@ import java.io.IOException;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.MockAnalyzer;
|
import org.apache.lucene.analysis.MockAnalyzer;
|
||||||
import org.apache.lucene.document.*;
|
import org.apache.lucene.document.*;
|
||||||
import org.apache.lucene.index.IndexReader;
|
|
||||||
import org.apache.lucene.index.LeafReaderContext;
|
import org.apache.lucene.index.LeafReaderContext;
|
||||||
|
import org.apache.lucene.index.IndexReader;
|
||||||
import org.apache.lucene.index.RandomIndexWriter;
|
import org.apache.lucene.index.RandomIndexWriter;
|
||||||
import org.apache.lucene.index.Term;
|
import org.apache.lucene.index.Term;
|
||||||
import org.apache.lucene.search.similarities.BM25Similarity;
|
|
||||||
import org.apache.lucene.store.Directory;
|
import org.apache.lucene.store.Directory;
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
import org.apache.lucene.util.LuceneTestCase;
|
||||||
|
|
||||||
|
@ -58,7 +57,6 @@ public class TestDocBoost extends LuceneTestCase {
|
||||||
final float[] scores = new float[4];
|
final float[] scores = new float[4];
|
||||||
|
|
||||||
IndexSearcher searcher = newSearcher(reader);
|
IndexSearcher searcher = newSearcher(reader);
|
||||||
searcher.setSimilarity(new BM25Similarity());
|
|
||||||
searcher.search
|
searcher.search
|
||||||
(new TermQuery(new Term("field", "word")),
|
(new TermQuery(new Term("field", "word")),
|
||||||
new SimpleCollector() {
|
new SimpleCollector() {
|
||||||
|
|
Loading…
Reference in New Issue