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.
|
getDefaultScoreCombinerpublic FieldValueFactorFunction(String field, float boostFactor, FieldValueFactorFunction.Modifier modifierType, Double missing, IndexNumericFieldData indexFieldData)
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx)
getLeafScoreFunction in class ScoreFunctionpublic boolean needsScores()
ScoreFunctionneedsScores in class ScoreFunctiontrue if scores are needed.Copyright © 2009–2017. All rights reserved.