You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by go...@apache.org on 2004/04/16 11:49:06 UTC
cvs commit: jakarta-lucene/src/java/org/apache/lucene/search WildcardQuery.java
goller 2004/04/16 02:49:06
Modified: src/java/org/apache/lucene/search WildcardQuery.java
Log:
added some javadoc (patch from Daniel)
Revision Changes Path
1.5 +9 -1 jakarta-lucene/src/java/org/apache/lucene/search/WildcardQuery.java
Index: WildcardQuery.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/WildcardQuery.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- WildcardQuery.java 29 Mar 2004 22:48:04 -0000 1.4
+++ WildcardQuery.java 16 Apr 2004 09:49:06 -0000 1.5
@@ -20,7 +20,15 @@
import org.apache.lucene.index.Term;
import java.io.IOException;
-/** Implements the wildcard search query */
+/** Implements the wildcard search query. Supported wildcards are <code>*</code>, which
+ * matches any character sequence (including the empty one), and <code>?</code>,
+ * which matches any single character. Note this query can be slow, as it
+ * needs to iterate over all terms. In order to prevent extremely slow WildcardQueries,
+ * a Wildcard term must not start with one of the wildcards <code>*</code> or
+ * <code>?</code>.
+ *
+ * @see WildcardTermEnum
+ */
public class WildcardQuery extends MultiTermQuery {
public WildcardQuery(Term term) {
super(term);
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org