FieldMapping Class

Defines a mapping between a field in a data source and a target field in an index.

All required parameters must be populated in order to send to Azure.

Inheritance
FieldMapping

Constructor

FieldMapping(*, source_field_name: str, target_field_name: Optional[str] = None, mapping_function: Optional[azure.search.documents.indexes._generated.models._models_py3.FieldMappingFunction] = None, **kwargs)

Parameters

source_field_name
str
Required

Required. The name of the field in the data source.

target_field_name
str
Required

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

mapping_function
FieldMappingFunction
Required

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