public class GaussDecayFunctionBuilder extends DecayFunctionBuilder<GaussDecayFunctionBuilder>
DecayFunctionBuilder.AbstractDistanceScoreFunction
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<R>
Modifier and Type | Field and Description |
---|---|
static DecayFunction |
GAUSS_DECAY_FUNCTION |
DECAY, DEFAULT_DECAY, DEFAULT_MULTI_VALUE_MODE, OFFSET, ORIGIN, SCALE
weight
EMPTY_PARAMS
Constructor and Description |
---|
GaussDecayFunctionBuilder(java.lang.String fieldName,
java.lang.Object origin,
java.lang.Object scale,
java.lang.Object offset) |
GaussDecayFunctionBuilder(java.lang.String fieldName,
java.lang.Object origin,
java.lang.Object scale,
java.lang.Object offset,
double decay) |
Modifier and Type | Method and Description |
---|---|
protected GaussDecayFunctionBuilder |
createFunctionBuilder(java.lang.String fieldName,
BytesReference functionBytes) |
DecayFunction |
getDecayFunction()
Override this function if you want to produce your own scorer.
|
java.lang.String |
getName() |
doEquals, doHashCode, doReadFrom, doToFunction, doWriteTo, doXContent, getFieldName, getFunctionBytes, getMultiValueMode, setMultiValueMode
buildWeight, equals, getWeight, getWriteableName, hashCode, readFrom, setWeight, toFunction, toXContent, writeTo
public static final DecayFunction GAUSS_DECAY_FUNCTION
public GaussDecayFunctionBuilder(java.lang.String fieldName, java.lang.Object origin, java.lang.Object scale, java.lang.Object offset)
public GaussDecayFunctionBuilder(java.lang.String fieldName, java.lang.Object origin, java.lang.Object scale, java.lang.Object offset, double decay)
protected GaussDecayFunctionBuilder createFunctionBuilder(java.lang.String fieldName, BytesReference functionBytes)
createFunctionBuilder
in class DecayFunctionBuilder<GaussDecayFunctionBuilder>
public java.lang.String getName()
getName
in class ScoreFunctionBuilder<GaussDecayFunctionBuilder>
public DecayFunction getDecayFunction()
DecayFunctionBuilder
getDecayFunction
in class DecayFunctionBuilder<GaussDecayFunctionBuilder>