Module org.elasticsearch.server
Class ExponentialDecayFunctionBuilder
java.lang.Object
org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<DFB>
org.elasticsearch.index.query.functionscore.DecayFunctionBuilder<ExponentialDecayFunctionBuilder>
org.elasticsearch.index.query.functionscore.ExponentialDecayFunctionBuilder
- All Implemented Interfaces:
- NamedWriteable,- VersionedNamedWriteable,- Writeable,- ToXContent,- ToXContentFragment
public class ExponentialDecayFunctionBuilder
extends DecayFunctionBuilder<ExponentialDecayFunctionBuilder>
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.index.query.functionscore.DecayFunctionBuilderDecayFunctionBuilder.AbstractDistanceScoreFunctionNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final DecayFunctionstatic final Stringstatic final ScoreFunctionParser<ExponentialDecayFunctionBuilder>Fields inherited from class org.elasticsearch.index.query.functionscore.DecayFunctionBuilderDECAY, DEFAULT_DECAY, DEFAULT_MULTI_VALUE_MODE, OFFSET, ORIGIN, SCALEFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionExponentialDecayFunctionBuilder(String fieldName, Object origin, Object scale, Object offset) ExponentialDecayFunctionBuilder(String fieldName, Object origin, Object scale, Object offset, double decay) Read from a stream.
- 
Method SummaryModifier and TypeMethodDescriptionOverride this function if you want to produce your own scorer.The minimal version of the recipient this object can be sent togetName()The name of this score function.Methods inherited from class org.elasticsearch.index.query.functionscore.DecayFunctionBuilderdoEquals, doHashCode, doToFunction, doWriteTo, doXContent, getFieldName, getFunctionBytes, getMultiValueMode, setMultiValueModeMethods inherited from class org.elasticsearch.index.query.functionscore.ScoreFunctionBuilderequals, getWeight, getWriteableName, hashCode, setWeight, toFunction, toXContent, writeToMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
NAME- See Also:
 
- 
PARSER
- 
EXP_DECAY_FUNCTION
 
- 
- 
Constructor Details- 
ExponentialDecayFunctionBuilder
- 
ExponentialDecayFunctionBuilder
- 
ExponentialDecayFunctionBuilderRead from a stream.- Throws:
- IOException
 
 
- 
- 
Method Details- 
getNameDescription copied from class:ScoreFunctionBuilderThe name of this score function.- Specified by:
- getNamein class- ScoreFunctionBuilder<ExponentialDecayFunctionBuilder>
 
- 
getDecayFunctionDescription copied from class:DecayFunctionBuilderOverride this function if you want to produce your own scorer.- Specified by:
- getDecayFunctionin class- DecayFunctionBuilder<ExponentialDecayFunctionBuilder>
 
- 
getMinimalSupportedVersionDescription copied from interface:VersionedNamedWriteableThe minimal version of the recipient this object can be sent to
 
-