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, hashCode
public 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 ScoreFunction
public boolean needsScores()
ScoreFunction
needsScores
in class ScoreFunction
true
if scores are needed.protected boolean doEquals(ScoreFunction other)
ScoreFunction
ScoreFunction
object of the same type is "equal to" this one.doEquals
in class ScoreFunction
protected int doHashCode()
doHashCode
in class ScoreFunction