public abstract static class DecayFunctionParser.AbstractDistanceScoreFunction extends ScoreFunction
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected MultiValueMode |
mode |
protected double |
offset |
| コンストラクタと説明 |
|---|
AbstractDistanceScoreFunction(double userSuppiedScale,
double decay,
double offset,
DecayFunction func,
MultiValueMode mode) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected abstract NumericDoubleValues |
distance(org.apache.lucene.index.LeafReaderContext context)
This function computes the distance from a defined origin.
|
protected abstract String |
getDistanceString(org.apache.lucene.index.LeafReaderContext ctx,
int docId) |
protected abstract String |
getFieldName() |
LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
getDefaultScoreCombiner, 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 クラス内 ScoreFunctionprotected abstract String getDistanceString(org.apache.lucene.index.LeafReaderContext ctx, int docId)
protected abstract String getFieldName()
Copyright © 2009–2016. All rights reserved.