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(java.lang.String field,
float boostFactor,
FieldValueFactorFunction.Modifier modifierType,
java.lang.Double missing,
IndexNumericFieldData indexFieldData) |
| 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() |
LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
boolean |
needsScores()
Indicates if document scores are needed by this function.
|
equals, getDefaultScoreCombiner, hashCodepublic FieldValueFactorFunction(java.lang.String field,
float boostFactor,
FieldValueFactorFunction.Modifier modifierType,
java.lang.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.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