你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ScoringProfile Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. ScoringProfile
- com.
Implements
public final class ScoringProfile
implements JsonSerializable<ScoringProfile>
Defines parameters for a search index that influence scoring in search queries.
Constructor Summary
Constructor | Description |
---|---|
ScoringProfile(String name) |
Creates an instance of Scoring |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Scoring |
fromJson(JsonReader jsonReader)
Reads an instance of Scoring |
Scoring |
getFunctionAggregation()
Get the function |
List<Scoring |
getFunctions()
Get the functions property: The collection of functions that influence the scoring of documents. |
String |
getName()
Get the name property: The name of the scoring profile. |
Text |
getTextWeights()
Get the text |
Scoring |
setFunctionAggregation(ScoringFunctionAggregation functionAggregation)
Set the function |
Scoring |
setFunctions(ScoringFunction[] functions)
Set the functions property: The collection of functions that influence the scoring of documents. |
Scoring |
setFunctions(List<ScoringFunction> functions)
Set the functions property: The collection of functions that influence the scoring of documents. |
Scoring |
setTextWeights(TextWeights textWeights)
Set the text |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ScoringProfile
public ScoringProfile(String name)
Creates an instance of ScoringProfile class.
Parameters:
Method Details
fromJson
public static ScoringProfile fromJson(JsonReader jsonReader)
Reads an instance of ScoringProfile from the JsonReader.
Parameters:
Returns:
Throws:
getFunctionAggregation
public ScoringFunctionAggregation 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:
getFunctions
public List
Get the functions property: The collection of functions that influence the scoring of documents.
Returns:
getName
public String getName()
Get the name property: The name of the scoring profile.
Returns:
getTextWeights
public TextWeights getTextWeights()
Get the textWeights property: Parameters that boost scoring based on text matches in certain index fields.
Returns:
setFunctionAggregation
public ScoringProfile setFunctionAggregation(ScoringFunctionAggregation functionAggregation)
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:
Returns:
setFunctions
public ScoringProfile setFunctions(ScoringFunction[] functions)
Set the functions property: The collection of functions that influence the scoring of documents.
Parameters:
Returns:
setFunctions
public ScoringProfile setFunctions(List
Set the functions property: The collection of functions that influence the scoring of documents.
Parameters:
Returns:
setTextWeights
public ScoringProfile setTextWeights(TextWeights textWeights)
Set the textWeights property: Parameters that boost scoring based on text matches in certain index fields.
Parameters:
Returns: