Apache Solr open-source search software
added some javadoc (patch from Daniel)
Christoph Goller34b8f647fee1
diff --git a/src/java/org/apache/lucene/search/WildcardQuery.java b/src/java/org/apache/lucene/search/WildcardQuery.javaindex 80e3865b0e1..03621c0ad4a 100644--- a/src/java/org/apache/lucene/search/WildcardQuery.java+++ b/src/java/org/apache/lucene/search/WildcardQuery.java@@ -20,7 +20,15 @@ import org.apache.lucene.index.IndexReader;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);