mirror of https://github.com/apache/lucene.git
LUCENE-5879: fix test compilation (this enum no longer exists)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1670923 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
30807709e6
commit
61166afce7
|
@ -118,18 +118,12 @@ public class TestTermRangeQuery extends LuceneTestCase {
|
|||
IndexSearcher searcher = newSearcher(reader);
|
||||
|
||||
TermRangeQuery query = new TermRangeQuery("content", null, null, true, true);
|
||||
Terms terms = MultiFields.getTerms(searcher.getIndexReader(), "content");
|
||||
// Should return the unfiltered TermsEnum:
|
||||
assertFalse(query.getTermsEnum(terms) instanceof TermRangeTermsEnum);
|
||||
assertEquals(4, searcher.search(query, 1000).scoreDocs.length);
|
||||
|
||||
query = TermRangeQuery.newStringRange("content", "", null, true, true);
|
||||
// Should return the unfiltered TermsEnum:
|
||||
assertFalse(query.getTermsEnum(terms) instanceof TermRangeTermsEnum);
|
||||
assertEquals(4, searcher.search(query, 1000).scoreDocs.length);
|
||||
|
||||
query = TermRangeQuery.newStringRange("content", "", null, true, false);
|
||||
assertFalse(query.getTermsEnum(terms) instanceof TermRangeTermsEnum);
|
||||
assertEquals(4, searcher.search(query, 1000).scoreDocs.length);
|
||||
|
||||
// and now another one
|
||||
|
|
Loading…
Reference in New Issue