public class WeightFactorFunction extends ScoreFunction
Constructor and Description |
---|
WeightFactorFunction(float weight) |
WeightFactorFunction(float weight,
ScoreFunction scoreFunction) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doEquals(ScoreFunction other)
Indicates whether some other
ScoreFunction object of the same type is "equal to" this one. |
protected int |
doHashCode() |
org.apache.lucene.search.Explanation |
explainWeight() |
LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
ScoreFunction |
getScoreFunction() |
float |
getWeight() |
boolean |
needsScores()
Indicates if document scores are needed by this function.
|
equals, getDefaultScoreCombiner, hashCode
public WeightFactorFunction(float weight, ScoreFunction scoreFunction)
public WeightFactorFunction(float weight)
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException
getLeafScoreFunction
in class ScoreFunction
java.io.IOException
public boolean needsScores()
ScoreFunction
needsScores
in class ScoreFunction
true
if scores are needed.public org.apache.lucene.search.Explanation explainWeight()
public float getWeight()
public ScoreFunction getScoreFunction()
protected boolean doEquals(ScoreFunction other)
ScoreFunction
ScoreFunction
object of the same type is "equal to" this one.doEquals
in class ScoreFunction
protected int doHashCode()
doHashCode
in class ScoreFunction