public class ConstantScorePrefixQuery extends Query
Constructor and Description |
---|
ConstantScorePrefixQuery(Term prefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns true if
o is equal to this. |
Term |
getPrefix()
Returns the prefix for this query
|
int |
hashCode()
Returns a hash code value for this object.
|
Query |
rewrite(IndexReader reader) |
String |
toString(String field)
Prints a user-readable version of this query.
|
clone, combine, createWeight, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight
public ConstantScorePrefixQuery(Term prefix)
public Term getPrefix()
public Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
public boolean equals(Object o)
o
is equal to this.