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(java.lang.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 java.io.IOException
MultiTermQuerygetEnum in class MultiTermQueryjava.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class MultiTermQuerypublic Query rewrite(IndexReader reader) throws java.io.IOException
Queryrewrite in class MultiTermQueryjava.io.IOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.