TagScoringFunction(String, Double, TagScoringParameters) Constructor

Definition

Initializes a new instance of TagScoringFunction.

public TagScoringFunction (string fieldName, double boost, Azure.Search.Documents.Indexes.Models.TagScoringParameters parameters);
new Azure.Search.Documents.Indexes.Models.TagScoringFunction : string * double * Azure.Search.Documents.Indexes.Models.TagScoringParameters -> Azure.Search.Documents.Indexes.Models.TagScoringFunction
Public Sub New (fieldName As String, boost As Double, parameters As TagScoringParameters)

Parameters

fieldName
System.String

The name of the field used as input to the scoring function.

boost
System.Double

A multiplier for the raw score. Must be a positive number not equal to 1.0.

parameters
TagScoringParameters

Parameter values for the tag scoring function.

Exceptions

System.ArgumentException

fieldName is an empty string.

System.ArgumentNullException

fieldName or parameters is null.

Applies to