org.apache.lucene.search
Class ConstantScoreQuery
- Cloneable, Serializable
public class ConstantScoreQuery
A query that wraps a filter and simply returns a constant score equal to the
query boost for every document in the filter.
clone , combine , createWeight , extractTerms , getBoost , getSimilarity , mergeBooleanQueries , rewrite , setBoost , toString , toString , weight |
filter
protected final Filter filter
ConstantScoreQuery
public ConstantScoreQuery(Filter filter)
equals
public boolean equals(Object o)
Returns true if o
is equal to this.
hashCode
public int hashCode()
Returns a hash code value for this object.
toString
public String toString(String field)
Prints a user-readable version of this query.
- toString in interface Query
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.