ScoringFunction (Azure SDK for Java Reference Documentation)
Michael Gray
Published Feb 16, 2026
Constructor Summary
Constructor Detail
Method Detail
getFieldName
public String getFieldName()
Get the fieldName property: The name of the field used as input to the scoring function.
- Returns:
- the fieldName value.
setFieldName
public ScoringFunction setFieldName(String fieldName)
Set the fieldName property: The name of the field used as input to the scoring function.
- Parameters:
fieldName- the fieldName value to set.- Returns:
- the ScoringFunction object itself.
setBoost
public ScoringFunction setBoost(double boost)
Set the boost property: A multiplier for the raw score. Must be a positive number not equal to 1.0.
- Parameters:
boost- the boost value to set.- Returns:
- the ScoringFunction object itself.
getInterpolation
public ScoringFunctionInterpolation getInterpolation()
Get the interpolation property: A value indicating how boosting will be interpolated across document scores; defaults to "Linear". Possible values include: 'linear', 'constant', 'quadratic', 'logarithmic'.
- Returns:
- the interpolation value.
setInterpolation
public ScoringFunction setInterpolation(ScoringFunctionInterpolation interpolation)
Set the interpolation property: A value indicating how boosting will be interpolated across document scores; defaults to "Linear". Possible values include: 'linear', 'constant', 'quadratic', 'logarithmic'.
- Parameters:
interpolation- the interpolation value to set.- Returns:
- the ScoringFunction object itself.
Copyright © 2020 Microsoft Corporation. All rights reserved.