mirror of
https://github.com/apache/lucene.git
synced 2025-02-14 22:16:00 +00:00
Revert the last change so we continue using randomize similarity for this test.
This commit is contained in:
parent
9a5356462f
commit
48a724c77b
@ -16,10 +16,6 @@
|
||||
*/
|
||||
package org.apache.lucene.search.grouping;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.lucene.analysis.MockAnalyzer;
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.document.Field;
|
||||
@ -35,12 +31,15 @@ import org.apache.lucene.search.IndexSearcher;
|
||||
import org.apache.lucene.search.Query;
|
||||
import org.apache.lucene.search.Sort;
|
||||
import org.apache.lucene.search.TermQuery;
|
||||
import org.apache.lucene.search.similarities.BM25Similarity;
|
||||
import org.apache.lucene.store.Directory;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util.mutable.MutableValueStr;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
public class GroupingSearchTest extends LuceneTestCase {
|
||||
|
||||
// Tests some very basic usages...
|
||||
@ -116,7 +115,6 @@ public class GroupingSearchTest extends LuceneTestCase {
|
||||
w.addDocument(doc);
|
||||
|
||||
IndexSearcher indexSearcher = newSearcher(w.getReader());
|
||||
indexSearcher.setSimilarity(new BM25Similarity());
|
||||
w.close();
|
||||
|
||||
Sort groupSort = Sort.RELEVANCE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user