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