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.
|
getDefaultScoreCombinerpublic WeightFactorFunction(float weight,
ScoreFunction scoreFunction)
public WeightFactorFunction(float weight)
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
getLeafScoreFunction in class ScoreFunctionIOExceptionpublic boolean needsScores()
ScoreFunctionneedsScores in class ScoreFunctiontrue if scores are needed.public org.apache.lucene.search.Explanation explainWeight()
public float getWeight()
Copyright © 2009–2016. All rights reserved.