public class WildcardQuery extends MultiTermQuery
*, which
matches any character sequence (including the empty one), and ?,
which matches any single character. Note this query can be slow, as it
needs to iterate over many terms. In order to prevent extremely slow WildcardQueries,
a Wildcard term should not start with one of the wildcards * or
?.WildcardTermEnum,
Serialized Form| Constructor and Description |
|---|
WildcardQuery(Term term) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
protected FilteredTermEnum |
getEnum(IndexReader reader)
Construct the enumeration to be used, expanding the pattern term.
|
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
getTerm, hashCode, toStringclone, combine, createWeight, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weightpublic WildcardQuery(Term term)
protected FilteredTermEnum getEnum(IndexReader reader) throws IOException
MultiTermQuerygetEnum in class MultiTermQueryIOExceptionpublic boolean equals(Object o)
equals in class MultiTermQuerypublic Query rewrite(IndexReader reader) throws IOException
Queryrewrite in class MultiTermQueryIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.