Condividi tramite


ScoringProfile Constructors

Definition

Overloads

ScoringProfile()

Initializes a new instance of the ScoringProfile class.

ScoringProfile(String, TextWeights, IList<ScoringFunction>, Nullable<ScoringFunctionAggregation>)

Initializes a new instance of the ScoringProfile class.

ScoringProfile()

Source:
ScoringProfile.cs

Initializes a new instance of the ScoringProfile class.

public ScoringProfile ();
Public Sub New ()

Applies to

ScoringProfile(String, TextWeights, IList<ScoringFunction>, Nullable<ScoringFunctionAggregation>)

Source:
ScoringProfile.cs

Initializes a new instance of the ScoringProfile class.

public ScoringProfile (string name, Microsoft.Azure.Search.Models.TextWeights textWeights = default, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.ScoringFunction> functions = default, Microsoft.Azure.Search.Models.ScoringFunctionAggregation? functionAggregation = default);
new Microsoft.Azure.Search.Models.ScoringProfile : string * Microsoft.Azure.Search.Models.TextWeights * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.ScoringFunction> * Nullable<Microsoft.Azure.Search.Models.ScoringFunctionAggregation> -> Microsoft.Azure.Search.Models.ScoringProfile
Public Sub New (name As String, Optional textWeights As TextWeights = Nothing, Optional functions As IList(Of ScoringFunction) = Nothing, Optional functionAggregation As Nullable(Of ScoringFunctionAggregation) = Nothing)

Parameters

name
String

The name of the scoring profile.

textWeights
TextWeights

Parameters that boost scoring based on text matches in certain index fields.

functions
IList<ScoringFunction>

The collection of functions that influence the scoring of documents.

functionAggregation
Nullable<ScoringFunctionAggregation>

A value indicating how the results of individual scoring functions should be combined. Defaults to "Sum". Ignored if there are no scoring functions. Possible values include: 'sum', 'average', 'minimum', 'maximum', 'firstMatching'

Applies to