diff --git a/src/test/org/apache/lucene/search/regex/TestRegexQuery.java b/src/test/org/apache/lucene/search/regex/TestRegexQuery.java index 26b41c66170..60ff4fbb8fb 100644 --- a/src/test/org/apache/lucene/search/regex/TestRegexQuery.java +++ b/src/test/org/apache/lucene/search/regex/TestRegexQuery.java @@ -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()); }