From 11866ad09d74b2fc516a0494d8afc4e025dbdef0 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Sat, 12 Nov 2005 09:09:49 +0000 Subject: [PATCH] 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 --- src/test/org/apache/lucene/search/regex/TestRegexQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }