SearchModelFactory.ScoringProfile Method

Definition

Defines parameters for a search index that influence scoring in search queries.

public static Azure.Search.Documents.Indexes.Models.ScoringProfile ScoringProfile(string name = default, Azure.Search.Documents.Indexes.Models.TextWeights textWeights = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.ScoringFunction> functions = default, Azure.Search.Documents.Indexes.Models.ScoringFunctionAggregation? functionAggregation = default);
static member ScoringProfile : string * Azure.Search.Documents.Indexes.Models.TextWeights * seq<Azure.Search.Documents.Indexes.Models.ScoringFunction> * Nullable<Azure.Search.Documents.Indexes.Models.ScoringFunctionAggregation> -> Azure.Search.Documents.Indexes.Models.ScoringProfile
Public Shared Function ScoringProfile (Optional name As String = Nothing, Optional textWeights As TextWeights = Nothing, Optional functions As IEnumerable(Of ScoringFunction) = Nothing, Optional functionAggregation As Nullable(Of ScoringFunctionAggregation) = Nothing) As ScoringProfile

Parameters

name
String

The name of the scoring profile.

textWeights
TextWeights

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

functions
IEnumerable<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.

Returns

A new ScoringProfile instance for mocking.

Applies to