org.apache.solr.search
Class ConstantScorePrefixQuery

java.lang.Object
  extended by org.apache.lucene.search.Query
      extended by org.apache.solr.search.ConstantScorePrefixQuery
All Implemented Interfaces:
Serializable, Cloneable

public class ConstantScorePrefixQuery
extends org.apache.lucene.search.Query

Version:
$Id: ConstantScorePrefixQuery.java 1065312 2011-01-30 16:08:25Z rmuir $
See Also:
Serialized Form

Constructor Summary
ConstantScorePrefixQuery(org.apache.lucene.index.Term prefix)
           
 
Method Summary
 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.
 
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
 

Constructor Detail

ConstantScorePrefixQuery

public ConstantScorePrefixQuery(org.apache.lucene.index.Term prefix)
Method Detail

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 IOException
Overrides:
rewrite in class org.apache.lucene.search.Query
Throws:
IOException

toString

public String toString(String field)
Prints a user-readable version of this query.

Specified by:
toString in class org.apache.lucene.search.Query

equals

public boolean equals(Object o)
Returns true if o is equal to this.

Overrides:
equals in class org.apache.lucene.search.Query

hashCode

public int hashCode()
Returns a hash code value for this object.

Overrides:
hashCode in class org.apache.lucene.search.Query


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.