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:
Erik Hatcher 2004-05-13 03:11:45 +00:00
parent 9a391c2469
commit 43d7d69054
1 changed files with 3 additions and 2 deletions

View File

@ -116,12 +116,13 @@ extends TestCase {
assertEquals (0, hits.length());
}
/** 
* This tests FilteredQuery's rewrite correctness
*/
public void testRangeQuery() throws Exception {
RangeQuery rq = new RangeQuery(
new Term("sorter", "b"), new Term("sorter", "d"), true);
// rq = rq.rewrite(searcher.reader) // makes the test pass
Query filteredquery = new FilteredQuery(rq, filter);
Hits hits = searcher.search(filteredquery);
assertEquals(2, hits.length());