org.apache.solr.search.function
Class FunctionQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.solr.search.function.FunctionQuery
- All Implemented Interfaces:
- Serializable, Cloneable
public class FunctionQuery
- extends Query
Returns a score for each document based on a ValueSource,
often some function of the value of a field.
- Version:
- $Id: FunctionQuery.java 472574 2006-11-08 18:25:52Z yonik $
- Author:
- yonik
- See Also:
- Serialized Form
FunctionQuery
public FunctionQuery(ValueSource func)
- Parameters:
func
- defines the function to be used for scoring
rewrite
public Query rewrite(IndexReader reader)
throws IOException
- Overrides:
rewrite
in class Query
- Throws:
IOException
extractTerms
public void extractTerms(Set terms)
- Overrides:
extractTerms
in class Query
createWeight
protected Weight createWeight(Searcher searcher)
- Overrides:
createWeight
in class Query
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 Object
hashCode
public int hashCode()
- Returns a hash code value for this object.
- Overrides:
hashCode
in class Object
Copyright © 2006 - 2009 The Apache Software Foundation