lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kris...@apache.org
Subject [04/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:45 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/8fa08f6d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/8fa08f6d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/8fa08f6d

Branch: refs/heads/jira/solr-8593
Commit: 8fa08f6d32ebd625998993050e7e33c147111232
Parents: 672d7e0
Author: Mike McCandless <mikemccand@apache.org>
Authored: Sun Nov 13 17:12:07 2016 -0500
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Sun Nov 13 17:12:07 2016 -0500

----------------------------------------------------------------------
 .../lucene/search/vectorhighlight/FastVectorHighlighterTest.java   | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/8fa08f6d/lucene/highlighter/src/test/org/apache/lucene/search/vectorhighlight/FastVectorHighlighterTest.java
----------------------------------------------------------------------
diff --git a/lucene/highlighter/src/test/org/apache/lucene/search/vectorhighlight/FastVectorHighlighterTest.java
b/lucene/highlighter/src/test/org/apache/lucene/search/vectorhighlight/FastVectorHighlighterTest.java
index 2658fe2..89f46af 100644
--- a/lucene/highlighter/src/test/org/apache/lucene/search/vectorhighlight/FastVectorHighlighterTest.java
+++ b/lucene/highlighter/src/test/org/apache/lucene/search/vectorhighlight/FastVectorHighlighterTest.java
@@ -51,7 +51,6 @@ import org.apache.lucene.search.TermQuery;
 import org.apache.lucene.search.TopDocs;
 import org.apache.lucene.search.highlight.DefaultEncoder;
 import org.apache.lucene.search.highlight.Encoder;
-import org.apache.lucene.search.similarities.BM25Similarity;
 import org.apache.lucene.store.Directory;
 import org.apache.lucene.util.LuceneTestCase;
 import org.apache.lucene.util.automaton.CharacterRunAutomaton;
@@ -350,7 +349,6 @@ public class FastVectorHighlighterTest extends LuceneTestCase {
     FastVectorHighlighter highlighter = new FastVectorHighlighter();
     IndexReader reader = DirectoryReader.open(writer);
     IndexSearcher searcher = newSearcher(reader);
-    searcher.setSimilarity(new BM25Similarity());
     TopDocs hits = searcher.search(query, 10);
     assertEquals(2, hits.totalHits);
     FieldQuery fieldQuery  = highlighter.getFieldQuery(query, reader);


Mime
View raw message