public abstract class ScoringFunction extends Object
| Constructor and Description |
|---|
ScoringFunction(String fieldName,
double boost)
Constructor of
ScoringFunction. |
| 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)
ScoringFunction.fieldName - The name of the field used as input to the scoring function.boost - A multiplier for the raw score. Must be a positive number not equal to 1.0.public String getFieldName()
public double getBoost()
public ScoringFunctionInterpolation getInterpolation()
public ScoringFunction setInterpolation(ScoringFunctionInterpolation interpolation)
interpolation - the interpolation value to set.Copyright © 2020 Microsoft Corporation. All rights reserved.