public abstract static class DecayFunctionBuilder.AbstractDistanceScoreFunction extends ScoreFunction
| Modifier and Type | Field and Description |
|---|---|
protected MultiValueMode |
mode |
protected double |
offset |
| Constructor and Description |
|---|
AbstractDistanceScoreFunction(double userSuppiedScale,
double decay,
double offset,
DecayFunction func,
MultiValueMode mode) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract NumericDoubleValues |
distance(org.apache.lucene.index.LeafReaderContext context)
This function computes the distance from a defined origin.
|
protected boolean |
doEquals(ScoreFunction other)
Indicates whether some other
ScoreFunction object of the same type is "equal to" this one. |
protected int |
doHashCode() |
protected abstract java.lang.String |
getDistanceString(org.apache.lucene.index.LeafReaderContext ctx,
int docId) |
protected abstract java.lang.String |
getFieldName() |
LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
equals, getDefaultScoreCombiner, hashCode, needsScoresprotected final double offset
protected final MultiValueMode mode
public AbstractDistanceScoreFunction(double userSuppiedScale,
double decay,
double offset,
DecayFunction func,
MultiValueMode mode)
protected abstract NumericDoubleValues distance(org.apache.lucene.index.LeafReaderContext context)
public final LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx)
getLeafScoreFunction in class ScoreFunctionprotected abstract java.lang.String getDistanceString(org.apache.lucene.index.LeafReaderContext ctx,
int docId)
protected abstract java.lang.String getFieldName()
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