public class ConstantScorePrefixQuery
extends org.apache.lucene.search.Query
Constructor and Description |
---|
ConstantScorePrefixQuery(org.apache.lucene.index.Term prefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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) |
String |
toString(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 IOException
rewrite
in class org.apache.lucene.search.Query
IOException
public String toString(String field)
toString
in class org.apache.lucene.search.Query
public boolean equals(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