org.apache.lucene.search
Class MultiTermQuery
java.lang.Object
|
+--org.apache.lucene.search.Query
|
+--org.apache.lucene.search.MultiTermQuery
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FuzzyQuery, WildcardQuery
- public class MultiTermQuery
- extends Query
A Query that matches documents containing a subset of terms provided
by a FilteredTermEnum enumeration.
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.
- See Also:
- Serialized Form
| Fields inherited from class org.apache.lucene.search.Query |
boost |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiTermQuery
public MultiTermQuery(Term term)
- Constructs a query for terms matching
term.
setEnum
protected void setEnum(FilteredTermEnum enum)
- Set the TermEnum to be used
toString
public String toString(String field)
- Prints a user-readable version of this query.
- Overrides:
toString in class Query
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.