java.lang.Object | ||
↳ | org.apache.lucene.search.Query | |
↳ | org.apache.lucene.search.TermQuery |
A Query that matches documents containing a term.
This may be combined with other terms with a BooleanQuery
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a query for the term
t . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Expert: Constructs an appropriate Weight implementation for this query.
| |||||||||||
Returns true iff
o is equal to this. | |||||||||||
Expert: adds all terms occurring in this query to the terms set.
| |||||||||||
Returns the term of this query.
| |||||||||||
Returns a hash code value for this object.
| |||||||||||
Prints a user-readable version of this query.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.Query
| |||||||||||
From class
java.lang.Object
|
Expert: Constructs an appropriate Weight implementation for this query.
Only implemented by primitive queries, which re-write to themselves.
IOException |
---|
Expert: adds all terms occurring in this query to the terms set. Only
works if this query is in its rewritten
form.
Returns a hash code value for this object.