Correct TestRegexQuery to test RegexQuery rather than SpanRegexQuery

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332748 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2005-11-12 09:09:49 +00:00
parent 6befc45334
commit 11866ad09d
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ public class TestRegexQuery extends TestCase {
writer.close();
IndexSearcher searcher = new IndexSearcher(directory);
Query query = new SpanRegexQuery(new Term("field", "q.[aeiou]c.*"));
Query query = new RegexQuery(new Term("field", "q.[aeiou]c.*"));
Hits hits = searcher.search(query);
assertEquals(1, hits.length());
}