Class ScoringProfile
java.lang.Object
com.azure.search.documents.indexes.models.ScoringProfile
Defines parameters for a search index that influence scoring in search queries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the functionAggregation property: A value indicating how the results of individual scoring functions should be combined.Get the functions property: The collection of functions that influence the scoring of documents.getName()
Get the name property: The name of the scoring profile.Get the textWeights property: Parameters that boost scoring based on text matches in certain index fields.setFunctionAggregation
(ScoringFunctionAggregation functionAggregation) Set the functionAggregation property: A value indicating how the results of individual scoring functions should be combined.setFunctions
(ScoringFunction... functions) Set the functions property: The collection of functions that influence the scoring of documents.setFunctions
(List<ScoringFunction> functions) Set the functions property: The collection of functions that influence the scoring of documents.setTextWeights
(TextWeights textWeights) Set the textWeights property: Parameters that boost scoring based on text matches in certain index fields.
-
Constructor Details
-
ScoringProfile
Creates an instance of ScoringProfile class.- Parameters:
name
- the name value to set.
-
-
Method Details
-
getName
Get the name property: The name of the scoring profile.- Returns:
- the name value.
-
getTextWeights
Get the textWeights property: Parameters that boost scoring based on text matches in certain index fields.- Returns:
- the textWeights value.
-
setTextWeights
Set the textWeights property: Parameters that boost scoring based on text matches in certain index fields.- Parameters:
textWeights
- the textWeights value to set.- Returns:
- the ScoringProfile object itself.
-
getFunctions
Get the functions property: The collection of functions that influence the scoring of documents.- Returns:
- the functions value.
-
setFunctions
Set the functions property: The collection of functions that influence the scoring of documents.- Parameters:
functions
- the functions value to set.- Returns:
- the ScoringProfile object itself.
-
getFunctionAggregation
Get the functionAggregation property: A value indicating how the results of individual scoring functions should be combined. Defaults to "Sum". Ignored if there are no scoring functions.- Returns:
- the functionAggregation value.
-
setFunctionAggregation
Set the functionAggregation property: A value indicating how the results of individual scoring functions should be combined. Defaults to "Sum". Ignored if there are no scoring functions.- Parameters:
functionAggregation
- the functionAggregation value to set.- Returns:
- the ScoringProfile object itself.
-
setFunctions
Set the functions property: The collection of functions that influence the scoring of documents.- Parameters:
functions
- the functions value to set.- Returns:
- the ScoringProfile object itself.
-