public abstract class ScoringFunction extends Object
Constructor and Description |
---|
ScoringFunction(String fieldName,
double boost)
Creates an instance of ScoringFunction class.
|
Modifier and Type | Method and Description |
---|---|
double |
getBoost()
Get the boost property: A multiplier for the raw score.
|
String |
getFieldName()
Get the fieldName property: The name of the field used as input to the scoring function.
|
ScoringFunctionInterpolation |
getInterpolation()
Get the interpolation property: A value indicating how boosting will be interpolated across document scores;
defaults to "Linear".
|
ScoringFunction |
setInterpolation(ScoringFunctionInterpolation interpolation)
Set the interpolation property: A value indicating how boosting will be interpolated across document scores;
defaults to "Linear".
|
public ScoringFunction(String fieldName, double boost)
fieldName
- the fieldName value to set.boost
- the boost value to set.public String getFieldName()
public double getBoost()
public ScoringFunctionInterpolation getInterpolation()
public ScoringFunction setInterpolation(ScoringFunctionInterpolation interpolation)
interpolation
- the interpolation value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.