lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kris...@apache.org
Subject [05/16] lucene-solr:jira/solr-8593: Revert the last change so we continue using randomize similarity for this test.
Date Mon, 14 Nov 2016 16:06:46 GMT
Revert the last change so we continue using randomize similarity for this test.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/8104468d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/8104468d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/8104468d

Branch: refs/heads/jira/solr-8593
Commit: 8104468de4c6a5a8cda7860c26313e79306d8c91
Parents: 8fa08f6
Author: Mike McCandless <mikemccand@apache.org>
Authored: Sun Nov 13 17:13:06 2016 -0500
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Sun Nov 13 17:13:06 2016 -0500

----------------------------------------------------------------------
 lucene/core/src/test/org/apache/lucene/search/TestDocBoost.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/8104468d/lucene/core/src/test/org/apache/lucene/search/TestDocBoost.java
----------------------------------------------------------------------
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 1621f31..ecc4645 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() {


Mime
View raw message