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 {@link FilteredTermEnum}
enumeration. A {@link FilteredTermEnum} enumeration needs to be provided.
For example, {@link WildcardQuery} and {@link FuzzyQuery} extend
MultiTermQuery
to provide {@link WildcardTermEnum} and
{@link FuzzyTermEnum}, respectively.
Constructor Summary | |
---|---|
MultiTermQuery(Term term) Constructs a query for terms matching term . |
Method Summary | |
---|---|
Query | combine(Query[] queries) |
protected abstract FilteredTermEnum | getEnum(IndexReader reader) Construct the enumeration to be used, expanding the pattern term. |
Term | getTerm() Returns the pattern term. |
Query | rewrite(IndexReader reader) |
String | toString(String field) Prints a user-readable version of this query. |
term
.