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, hashCodepublic 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 ScoreFunctionjava.io.IOExceptionpublic boolean needsScores()
ScoreFunctionneedsScores in class ScoreFunctiontrue if scores are needed.public org.apache.lucene.search.Explanation explainWeight()
public float getWeight()
public ScoreFunction getScoreFunction()
protected boolean doEquals(ScoreFunction other)
ScoreFunctionScoreFunction object of the same type is "equal to" this one.doEquals in class ScoreFunctionprotected int doHashCode()
doHashCode in class ScoreFunction