public class FieldValueFactorFunction extends ScoreFunction
Modifier and Type | Class and Description |
---|---|
static class |
FieldValueFactorFunction.Modifier
The Type class encapsulates the modification types that can be applied
to the score/value product.
|
Constructor and Description |
---|
FieldValueFactorFunction(String field,
float boostFactor,
FieldValueFactorFunction.Modifier modifierType,
Double missing,
IndexNumericFieldData indexFieldData) |
Modifier and Type | Method and Description |
---|---|
LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
boolean |
needsScores()
Indicates if document scores are needed by this function.
|
getDefaultScoreCombiner
public FieldValueFactorFunction(String field, float boostFactor, FieldValueFactorFunction.Modifier modifierType, Double missing, IndexNumericFieldData indexFieldData)
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx)
getLeafScoreFunction
in class ScoreFunction
public boolean needsScores()
ScoreFunction
needsScores
in class ScoreFunction
true
if scores are needed.Copyright © 2009–2017. All rights reserved.