mirror of https://github.com/apache/lucene.git
Remove commented out workaround fix. Doug fixed FilteredQuery's rewrite.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150338 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9a391c2469
commit
43d7d69054
|
@ -116,12 +116,13 @@ extends TestCase {
|
||||||
assertEquals (0, hits.length());
|
assertEquals (0, hits.length());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This tests FilteredQuery's rewrite correctness
|
||||||
|
*/
|
||||||
public void testRangeQuery() throws Exception {
|
public void testRangeQuery() throws Exception {
|
||||||
RangeQuery rq = new RangeQuery(
|
RangeQuery rq = new RangeQuery(
|
||||||
new Term("sorter", "b"), new Term("sorter", "d"), true);
|
new Term("sorter", "b"), new Term("sorter", "d"), true);
|
||||||
|
|
||||||
// rq = rq.rewrite(searcher.reader) // makes the test pass
|
|
||||||
|
|
||||||
Query filteredquery = new FilteredQuery(rq, filter);
|
Query filteredquery = new FilteredQuery(rq, filter);
|
||||||
Hits hits = searcher.search(filteredquery);
|
Hits hits = searcher.search(filteredquery);
|
||||||
assertEquals(2, hits.length());
|
assertEquals(2, hits.length());
|
||||||
|
|
Loading…
Reference in New Issue