Share via


FieldMapping Constructors

Definition

Overloads

FieldMapping()

Initializes a new instance of the FieldMapping class.

FieldMapping(String, FieldMappingFunction)

Initializes a new instance of the FieldMapping class.

FieldMapping(String, String, FieldMappingFunction)

Initializes a new instance of the FieldMapping class.

FieldMapping()

Source:
FieldMapping.cs

Initializes a new instance of the FieldMapping class.

public FieldMapping ();
Public Sub New ()

Applies to

FieldMapping(String, FieldMappingFunction)

Source:
FieldMapping.Customization.cs

Initializes a new instance of the FieldMapping class.

public FieldMapping (string sourceFieldName, Microsoft.Azure.Search.Models.FieldMappingFunction mappingFunction);
new Microsoft.Azure.Search.Models.FieldMapping : string * Microsoft.Azure.Search.Models.FieldMappingFunction -> Microsoft.Azure.Search.Models.FieldMapping
Public Sub New (sourceFieldName As String, mappingFunction As FieldMappingFunction)

Parameters

sourceFieldName
String

The name of the field in the data source.

mappingFunction
FieldMappingFunction

A function to apply to each source field value before indexing.

Applies to

FieldMapping(String, String, FieldMappingFunction)

Source:
FieldMapping.cs

Initializes a new instance of the FieldMapping class.

public FieldMapping (string sourceFieldName, string targetFieldName = default, Microsoft.Azure.Search.Models.FieldMappingFunction mappingFunction = default);
new Microsoft.Azure.Search.Models.FieldMapping : string * string * Microsoft.Azure.Search.Models.FieldMappingFunction -> Microsoft.Azure.Search.Models.FieldMapping
Public Sub New (sourceFieldName As String, Optional targetFieldName As String = Nothing, Optional mappingFunction As FieldMappingFunction = Nothing)

Parameters

sourceFieldName
String

The name of the field in the data source.

targetFieldName
String

The name of the target field in the index. Same as the source field name by default.

mappingFunction
FieldMappingFunction

A function to apply to each source field value before indexing.

Applies to