org.apache.solr.search
Class ConstantScorePrefixQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.solr.search.ConstantScorePrefixQuery
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class ConstantScorePrefixQuery
- extends org.apache.lucene.search.Query
- Version:
- $Id: ConstantScorePrefixQuery.java 472574 2006-11-08 18:25:52Z yonik $
- Author:
- yonik
- See Also:
- Serialized Form
Method Summary |
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. |
Methods inherited from class org.apache.lucene.search.Query |
clone, combine, createWeight, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ConstantScorePrefixQuery
public ConstantScorePrefixQuery(org.apache.lucene.index.Term prefix)
getPrefix
public org.apache.lucene.index.Term getPrefix()
- Returns the prefix for this query
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
- Overrides:
rewrite
in class org.apache.lucene.search.Query
- Throws:
java.io.IOException
toString
public java.lang.String toString(java.lang.String field)
- Prints a user-readable version of this query.
- Specified by:
toString
in class org.apache.lucene.search.Query
equals
public boolean equals(java.lang.Object o)
- Returns true if
o
is equal to this.
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Returns a hash code value for this object.
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2006 - 2008 The Apache Software Foundation