public class FunctionQuery extends Query
Modifier and Type | Class and Description |
---|---|
protected class |
FunctionQuery.AllScorer |
protected class |
FunctionQuery.FunctionWeight |
Constructor and Description |
---|
FunctionQuery(ValueSource func) |
Modifier and Type | Method and Description |
---|---|
Weight |
createWeight(Searcher searcher) |
boolean |
equals(Object o)
Returns true if
o is equal to this. |
void |
extractTerms(Set terms) |
ValueSource |
getValueSource() |
int |
hashCode()
Returns a hash code value for this object.
|
Query |
rewrite(IndexReader reader) |
String |
toString(String field)
Prints a user-readable version of this query.
|
clone, combine, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight
public FunctionQuery(ValueSource func)
func
- defines the function to be used for scoringpublic ValueSource getValueSource()
public Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
public void extractTerms(Set terms)
extractTerms
in class Query
public Weight createWeight(Searcher searcher) throws IOException
createWeight
in class Query
IOException
public boolean equals(Object o)
o
is equal to this.