public class ConstantScorePrefixQuery
extends org.apache.lucene.search.Query
Modifier and Type | Field and Description |
---|---|
private org.apache.lucene.index.Term |
prefix |
Constructor and Description |
---|
ConstantScorePrefixQuery(org.apache.lucene.index.Term prefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if
o is equal to this. |
org.apache.lucene.index.Term |
getPrefix()
Returns the prefix for this query
|
int |
hashCode()
Returns a hash code value for this object.
|
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader) |
java.lang.String |
toString(java.lang.String field)
Prints a user-readable version of this query.
|
public ConstantScorePrefixQuery(org.apache.lucene.index.Term prefix)
public org.apache.lucene.index.Term getPrefix()
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
rewrite
in class org.apache.lucene.search.Query
java.io.IOException
public java.lang.String toString(java.lang.String field)
toString
in class org.apache.lucene.search.Query
public boolean equals(java.lang.Object o)
o
is equal to this.equals
in class org.apache.lucene.search.Query
public int hashCode()
hashCode
in class org.apache.lucene.search.Query