public class FunctionQuery extends Query
ValueSourceScorer
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(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
boolean |
equals(Object other)
Returns true if
o is equal to this. |
ValueSource |
getValueSource() |
int |
hashCode() |
String |
toString(String field)
Prints a user-readable version of this query.
|
classHash, rewrite, sameClassAs, toString
public FunctionQuery(ValueSource func)
func
- defines the function to be used for scoringpublic ValueSource getValueSource()
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
createWeight
in class Query
IOException
public boolean equals(Object other)
o
is equal to this.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.