lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r332748 - /lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestRegexQuery.java
Date Sat, 12 Nov 2005 09:09:51 GMT
Author: ehatcher
Date: Sat Nov 12 01:09:49 2005
New Revision: 332748

URL: http://svn.apache.org/viewcvs?rev=332748&view=rev
Log:
Correct TestRegexQuery to test RegexQuery rather than SpanRegexQuery

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestRegexQuery.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestRegexQuery.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestRegexQuery.java?rev=332748&r1=332747&r2=332748&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestRegexQuery.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestRegexQuery.java Sat Nov
12 01:09:49 2005
@@ -22,7 +22,7 @@
     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());
   }



Mime
View raw message