public class TermQuery extends Query
BooleanQuery
.Constructor and Description |
---|
TermQuery(Term t)
Constructs a query for the term
t . |
Modifier and Type | Method and Description |
---|---|
protected Weight |
createWeight(Searcher searcher)
Expert: Constructs an appropriate Weight implementation for this query.
|
boolean |
equals(Object o)
Returns true iff
o is equal to this. |
Term |
getTerm()
Returns the term of this query.
|
int |
hashCode()
Returns a hash code value for this object.
|
String |
toString(String field)
Prints a user-readable version of this query.
|
clone, combine, getBoost, getSimilarity, mergeBooleanQueries, rewrite, setBoost, toString, weight
public TermQuery(Term t)
t
.public Term getTerm()
protected Weight createWeight(Searcher searcher)
Query
Only implemented by primitive queries, which re-write to themselves.
createWeight
in class Query
public boolean equals(Object o)
o
is equal to this.Copyright © 2024 GATE. All rights reserved.