org.apache.lucene.search
public abstract class MultiTermQuery extends Query
MultiTermQuery is not designed to be used by itself.
The reason being that it is not intialized with a FilteredTermEnum
enumeration. A FilteredTermEnum enumeration needs to be provided.
For example, WildcardQuery and FuzzyQuery extend
MultiTermQuery to provide WildcardTermEnum and
FuzzyTermEnum, respectively.
| Constructor Summary | |
|---|---|
| MultiTermQuery(Term term) Constructs a query for terms matching term. | |
| Method Summary | |
|---|---|
| boolean | equals(Object o) |
| protected abstract FilteredTermEnum | getEnum(IndexReader reader) Construct the enumeration to be used, expanding the pattern term. |
| Term | getTerm() Returns the pattern term. |
| int | hashCode() |
| Query | rewrite(IndexReader reader) |
| String | toString(String field) Prints a user-readable version of this query. |
term.