ScoringFunction Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ScoringFunction(String) |
Initializes a new instance of ScoringFunction. |
| ScoringFunction(String, Double, String) |
Initializes a scoring function for a field. |
ScoringFunction(String)
Initializes a new instance of ScoringFunction.
public ScoringFunction(string type);
new Azure.Search.Documents.Indexes.Models.ScoringFunction : string -> Azure.Search.Documents.Indexes.Models.ScoringFunction
Public Sub New (type As String)
Parameters
- type
- String
Type of ScoringFunction.
Exceptions
type is null.
Applies to
ScoringFunction(String, Double, String)
- Source:
- ScoringFunction.cs
- Source:
- ScoringFunction.cs
Initializes a scoring function for a field.
public ScoringFunction(string fieldName, double boost, string type);
new Azure.Search.Documents.Indexes.Models.ScoringFunction : string * double * string -> Azure.Search.Documents.Indexes.Models.ScoringFunction
Public Sub New (fieldName As String, boost As Double, type As String)
Parameters
- fieldName
- String
The input field name.
- boost
- Double
The score multiplier.
- type
- String
The scoring function type.
Exceptions
fieldName or type is null.