public class WeightFactorFunction extends ScoreFunction
Constructor and Description |
---|
WeightFactorFunction(float weight) |
WeightFactorFunction(float weight,
ScoreFunction scoreFunction) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Explanation |
explainWeight() |
LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
float |
getWeight() |
boolean |
needsScores()
Indicates if document scores are needed by this function.
|
getDefaultScoreCombiner
public WeightFactorFunction(float weight, ScoreFunction scoreFunction)
public WeightFactorFunction(float weight)
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
getLeafScoreFunction
in class ScoreFunction
IOException
public boolean needsScores()
ScoreFunction
needsScores
in class ScoreFunction
true
if scores are needed.public org.apache.lucene.search.Explanation explainWeight()
public float getWeight()
Copyright © 2009–2016. All rights reserved.