mirror of https://github.com/apache/lucene.git
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:
parent
6befc45334
commit
11866ad09d
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue