org.apache.lucene.search
Class TermQuery
java.lang.Object
|
+--org.apache.lucene.search.Query
|
+--org.apache.lucene.search.TermQuery
- All Implemented Interfaces:
- Serializable
- public final class TermQuery
- extends Query
A Query that matches documents containing a term.
This may be combined with other terms with a BooleanQuery
.
- See Also:
- Serialized Form
Fields inherited from class org.apache.lucene.search.Query |
boost |
Constructor Summary |
TermQuery(Term t)
Constructs a query for the term t . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TermQuery
public TermQuery(Term t)
- Constructs a query for the term
t
.
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.