lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject [1/7] lucene-solr:branch_6x: Revert the last change so we continue using randomize similarity for this test.
Date Sun, 13 Nov 2016 23:52:17 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 235b80f59 -> 6d9520768


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/3fe31885
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/3fe31885
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/3fe31885

Branch: refs/heads/branch_6x
Commit: 3fe3188553194d8327073672e90a51f7267011c7
Parents: 235b80f
Author: Mike McCandless <mikemccand@apache.org>
Authored: Sun Nov 13 18:35:01 2016 -0500
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Sun Nov 13 18:35:01 2016 -0500

----------------------------------------------------------------------
 .../src/test/org/apache/solr/uninverting/TestFieldCacheSort.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/3fe31885/solr/core/src/test/org/apache/solr/uninverting/TestFieldCacheSort.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/uninverting/TestFieldCacheSort.java b/solr/core/src/test/org/apache/solr/uninverting/TestFieldCacheSort.java
index 9cdeffd..34d9237 100644
--- a/solr/core/src/test/org/apache/solr/uninverting/TestFieldCacheSort.java
+++ b/solr/core/src/test/org/apache/solr/uninverting/TestFieldCacheSort.java
@@ -50,11 +50,10 @@ import org.apache.lucene.search.Sort;
 import org.apache.lucene.search.SortField;
 import org.apache.lucene.search.TermQuery;
 import org.apache.lucene.search.TopDocs;
-import org.apache.lucene.search.similarities.BM25Similarity;
 import org.apache.lucene.store.Directory;
+import org.apache.solr.uninverting.UninvertingReader.Type;
 import org.apache.lucene.util.LuceneTestCase;
 import org.apache.lucene.util.TestUtil;
-import org.apache.solr.uninverting.UninvertingReader.Type;
 
 /*
  * Tests sorting (but with fieldcache instead of docvalues)
@@ -435,7 +434,6 @@ public class TestFieldCacheSort extends LuceneTestCase {
     writer.close();
     
     IndexSearcher searcher = newSearcher(ir);
-    searcher.setSimilarity(new BM25Similarity());
     Sort sort = new Sort(new SortField(null, SortField.Type.SCORE, true));
 
     TopDocs actual = searcher.search(new TermQuery(new Term("value", "foo")), 10, sort);


Mime
View raw message