org.apache.solr.search
Class ConstantScorePrefixQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.solr.search.ConstantScorePrefixQuery
- All Implemented Interfaces:
- Serializable, Cloneable
public class ConstantScorePrefixQuery
- extends Query
- Version:
- $Id: ConstantScorePrefixQuery.java 741262 2009-02-05 19:41:55Z shalin $
- See Also:
- Serialized Form
ConstantScorePrefixQuery
public ConstantScorePrefixQuery(Term prefix)
getPrefix
public Term getPrefix()
- Returns the prefix for this query
rewrite
public Query rewrite(IndexReader reader)
throws IOException
- Overrides:
rewrite
in class Query
- Throws:
IOException
toString
public String toString(String field)
- Prints a user-readable version of this query.
- Specified by:
toString
in class Query
equals
public boolean equals(Object o)
- Returns true if
o
is equal to this.
- Overrides:
equals
in class Query
hashCode
public int hashCode()
- Returns a hash code value for this object.
- Overrides:
hashCode
in class Query
Copyright © 2009 Apache Software Foundation. All Rights Reserved.