Class GaussDecayFunctionBuilder
java.lang.Object
org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<DFB>
org.elasticsearch.index.query.functionscore.DecayFunctionBuilder<GaussDecayFunctionBuilder>
org.elasticsearch.index.query.functionscore.GaussDecayFunctionBuilder
- All Implemented Interfaces:
NamedWriteable
,Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.query.functionscore.DecayFunctionBuilder
DecayFunctionBuilder.AbstractDistanceScoreFunction
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ParseField
static DecayFunction
static String
Fields inherited from class org.elasticsearch.index.query.functionscore.DecayFunctionBuilder
DECAY, DEFAULT_DECAY, DEFAULT_MULTI_VALUE_MODE, OFFSET, ORIGIN, SCALE
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionGaussDecayFunctionBuilder(String fieldName, Object origin, Object scale, Object offset)
GaussDecayFunctionBuilder(String fieldName, Object origin, Object scale, Object offset, double decay)
Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionOverride this function if you want to produce your own scorer.getName()
The name of this score function.Methods inherited from class org.elasticsearch.index.query.functionscore.DecayFunctionBuilder
doEquals, doHashCode, doToFunction, doWriteTo, doXContent, getFieldName, getFunctionBytes, getMultiValueMode, setMultiValueMode
Methods inherited from class org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder
equals, getWeight, getWriteableName, hashCode, setWeight, toFunction, toXContent, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
- Constant Field Values
-
FUNCTION_NAME_FIELD
public static final org.elasticsearch.common.xcontent.ParseField FUNCTION_NAME_FIELD -
PARSER
-
GAUSS_DECAY_FUNCTION
-
-
Constructor Details
-
GaussDecayFunctionBuilder
-
GaussDecayFunctionBuilder
-
GaussDecayFunctionBuilder
Read from a stream.- Throws:
IOException
-
-
Method Details
-
getName
Description copied from class:ScoreFunctionBuilder
The name of this score function.- Specified by:
getName
in classScoreFunctionBuilder<GaussDecayFunctionBuilder>
-
getDecayFunction
Description copied from class:DecayFunctionBuilder
Override this function if you want to produce your own scorer.- Specified by:
getDecayFunction
in classDecayFunctionBuilder<GaussDecayFunctionBuilder>
-