public class ExponentialDecayFunctionBuilder extends DecayFunctionBuilder<ExponentialDecayFunctionBuilder>
DecayFunctionBuilder.AbstractDistanceScoreFunctionToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field and Description |
|---|---|
static DecayFunction |
EXP_DECAY_FUNCTION |
static java.lang.String |
NAME |
static ScoreFunctionParser<ExponentialDecayFunctionBuilder> |
PARSER |
DECAY, DEFAULT_DECAY, DEFAULT_MULTI_VALUE_MODE, OFFSET, ORIGIN, SCALEEMPTY_PARAMS| Constructor and Description |
|---|
ExponentialDecayFunctionBuilder(StreamInput in)
Read from a stream.
|
ExponentialDecayFunctionBuilder(java.lang.String fieldName,
java.lang.Object origin,
java.lang.Object scale,
java.lang.Object offset) |
ExponentialDecayFunctionBuilder(java.lang.String fieldName,
java.lang.Object origin,
java.lang.Object scale,
java.lang.Object offset,
double decay) |
| Modifier and Type | Method and Description |
|---|---|
DecayFunction |
getDecayFunction()
Override this function if you want to produce your own scorer.
|
java.lang.String |
getName()
The name of this score function.
|
doEquals, doHashCode, doToFunction, doWriteTo, doXContent, getFieldName, getFunctionBytes, getMultiValueMode, setMultiValueModeequals, getWeight, getWriteableName, hashCode, setWeight, toFunction, toXContent, writeToclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final java.lang.String NAME
public static final ScoreFunctionParser<ExponentialDecayFunctionBuilder> PARSER
public static final DecayFunction EXP_DECAY_FUNCTION
public ExponentialDecayFunctionBuilder(java.lang.String fieldName,
java.lang.Object origin,
java.lang.Object scale,
java.lang.Object offset)
public ExponentialDecayFunctionBuilder(java.lang.String fieldName,
java.lang.Object origin,
java.lang.Object scale,
java.lang.Object offset,
double decay)
public ExponentialDecayFunctionBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
ScoreFunctionBuildergetName in class ScoreFunctionBuilder<ExponentialDecayFunctionBuilder>public DecayFunction getDecayFunction()
DecayFunctionBuildergetDecayFunction in class DecayFunctionBuilder<ExponentialDecayFunctionBuilder>