Class ScoreFunctionsDescriptor<T>
Inheritance
ScoreFunctionsDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class ScoreFunctionsDescriptor<T> : DescriptorPromiseBase<ScoreFunctionsDescriptor<T>, IList<IScoreFunction>>, IDescriptor, IPromise<IList<IScoreFunction>> where T : class
Type Parameters
Constructors
|
Edit this page
View Source
ScoreFunctionsDescriptor()
Declaration
public ScoreFunctionsDescriptor()
Methods
|
Edit this page
View Source
Exponential(Func<ExponentialDecayFunctionDescriptor<double?, double?, T>, IDecayFunction<double?, double?>>)
Declaration
public ScoreFunctionsDescriptor<T> Exponential(Func<ExponentialDecayFunctionDescriptor<double?, double?, T>, IDecayFunction<double?, double?>> selector)
Parameters
Returns
|
Edit this page
View Source
ExponentialDate(Func<ExponentialDecayFunctionDescriptor<DateMath, Time, T>, IDecayFunction<DateMath, Time>>)
Declaration
public ScoreFunctionsDescriptor<T> ExponentialDate(Func<ExponentialDecayFunctionDescriptor<DateMath, Time, T>, IDecayFunction<DateMath, Time>> selector)
Parameters
Returns
|
Edit this page
View Source
ExponentialGeoLocation(Func<ExponentialDecayFunctionDescriptor<GeoLocation, Distance, T>, IDecayFunction<GeoLocation, Distance>>)
Declaration
public ScoreFunctionsDescriptor<T> ExponentialGeoLocation(Func<ExponentialDecayFunctionDescriptor<GeoLocation, Distance, T>, IDecayFunction<GeoLocation, Distance>> selector)
Parameters
Returns
|
Edit this page
View Source
FieldValueFactor(Func<FieldValueFactorFunctionDescriptor<T>, IFieldValueFactorFunction>)
Declaration
public ScoreFunctionsDescriptor<T> FieldValueFactor(Func<FieldValueFactorFunctionDescriptor<T>, IFieldValueFactorFunction> selector)
Parameters
Returns
|
Edit this page
View Source
Gauss(Func<GaussDecayFunctionDescriptor<double?, double?, T>, IDecayFunction<double?, double?>>)
Declaration
public ScoreFunctionsDescriptor<T> Gauss(Func<GaussDecayFunctionDescriptor<double?, double?, T>, IDecayFunction<double?, double?>> selector)
Parameters
Returns
|
Edit this page
View Source
GaussDate(Func<GaussDecayFunctionDescriptor<DateMath, Time, T>, IDecayFunction<DateMath, Time>>)
Declaration
public ScoreFunctionsDescriptor<T> GaussDate(Func<GaussDecayFunctionDescriptor<DateMath, Time, T>, IDecayFunction<DateMath, Time>> selector)
Parameters
Returns
|
Edit this page
View Source
GaussGeoLocation(Func<GaussDecayFunctionDescriptor<GeoLocation, Distance, T>, IDecayFunction<GeoLocation, Distance>>)
Declaration
public ScoreFunctionsDescriptor<T> GaussGeoLocation(Func<GaussDecayFunctionDescriptor<GeoLocation, Distance, T>, IDecayFunction<GeoLocation, Distance>> selector)
Parameters
Returns
|
Edit this page
View Source
Linear(Func<LinearDecayFunctionDescriptor<double?, double?, T>, IDecayFunction<double?, double?>>)
Declaration
public ScoreFunctionsDescriptor<T> Linear(Func<LinearDecayFunctionDescriptor<double?, double?, T>, IDecayFunction<double?, double?>> selector)
Parameters
Returns
|
Edit this page
View Source
LinearDate(Func<LinearDecayFunctionDescriptor<DateMath, Time, T>, IDecayFunction<DateMath, Time>>)
Declaration
public ScoreFunctionsDescriptor<T> LinearDate(Func<LinearDecayFunctionDescriptor<DateMath, Time, T>, IDecayFunction<DateMath, Time>> selector)
Parameters
Returns
|
Edit this page
View Source
LinearGeoLocation(Func<LinearDecayFunctionDescriptor<GeoLocation, Distance, T>, IDecayFunction<GeoLocation, Distance>>)
Declaration
public ScoreFunctionsDescriptor<T> LinearGeoLocation(Func<LinearDecayFunctionDescriptor<GeoLocation, Distance, T>, IDecayFunction<GeoLocation, Distance>> selector)
Parameters
Returns
|
Edit this page
View Source
RandomScore(Func<RandomScoreFunctionDescriptor<T>, IRandomScoreFunction>)
Declaration
public ScoreFunctionsDescriptor<T> RandomScore(Func<RandomScoreFunctionDescriptor<T>, IRandomScoreFunction> selector = null)
Parameters
Returns
|
Edit this page
View Source
ScriptScore(Func<ScriptScoreFunctionDescriptor<T>, IScriptScoreFunction>)
Declaration
public ScoreFunctionsDescriptor<T> ScriptScore(Func<ScriptScoreFunctionDescriptor<T>, IScriptScoreFunction> selector)
Parameters
Returns
|
Edit this page
View Source
Weight(double)
Declaration
public ScoreFunctionsDescriptor<T> Weight(double weight)
Parameters
Type |
Name |
Description |
double |
weight |
|
Returns
|
Edit this page
View Source
Weight(Func<WeightFunctionDescriptor<T>, IWeightFunction>)
Declaration
public ScoreFunctionsDescriptor<T> Weight(Func<WeightFunctionDescriptor<T>, IWeightFunction> selector)
Parameters
Returns
Implements
Extension Methods