NamedWriteable, Writeable, ToXContent, ToXContentFragmentpublic class GaussDecayFunctionBuilder extends DecayFunctionBuilder<GaussDecayFunctionBuilder>
DecayFunctionBuilder.AbstractDistanceScoreFunctionToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static ParseField |
FUNCTION_NAME_FIELD |
|
static DecayFunction |
GAUSS_DECAY_FUNCTION |
|
static java.lang.String |
NAME |
|
static ScoreFunctionParser<GaussDecayFunctionBuilder> |
PARSER |
DECAY, DEFAULT_DECAY, DEFAULT_MULTI_VALUE_MODE, OFFSET, ORIGIN, SCALEEMPTY_PARAMS| Constructor | 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) |
|
GaussDecayFunctionBuilder(StreamInput in) |
Read from a stream.
|
| Modifier and Type | Method | 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, setMultiValueModeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitequals, getWeight, getWriteableName, hashCode, setWeight, toFunction, toXContent, writeToisFragmentpublic static final java.lang.String NAME
public static final ParseField FUNCTION_NAME_FIELD
public static final ScoreFunctionParser<GaussDecayFunctionBuilder> PARSER
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)
public GaussDecayFunctionBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
ScoreFunctionBuildergetName in class ScoreFunctionBuilder<GaussDecayFunctionBuilder>public DecayFunction getDecayFunction()
DecayFunctionBuildergetDecayFunction in class DecayFunctionBuilder<GaussDecayFunctionBuilder>