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 FormConstructor 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.
|
getTerm, hashCode, rewrite, toString
clone, combine, createWeight, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight
public WildcardQuery(Term term)
protected FilteredTermEnum getEnum(IndexReader reader) throws IOException
MultiTermQuery
getEnum
in class MultiTermQuery
IOException
public boolean equals(Object o)
equals
in class MultiTermQuery
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.