다음을 통해 공유


FieldMappingFunction Class

Definition

Represents a function that transforms a value from a data source before indexing. https://docs.microsoft.com/azure/search/search-indexer-field-mappings

public class FieldMappingFunction
type FieldMappingFunction = class
Public Class FieldMappingFunction
Inheritance
FieldMappingFunction

Constructors

FieldMappingFunction()

Initializes a new instance of the FieldMappingFunction class.

FieldMappingFunction(String, IDictionary<String,Object>)

Initializes a new instance of the FieldMappingFunction class.

Properties

Name

Gets or sets the name of the field mapping function.

Parameters

Gets or sets a dictionary of parameter name/value pairs to pass to the function. Each value must be of a primitive type.

Methods

Base64Decode()

Creates a field mapping function that performs Base64 decoding of the input string. The input is assumed to a URL-safe Base64-encoded string.

Base64Decode(Boolean)

Creates a field mapping function that performs Base64 decoding of the input string. The input is assumed to a URL-safe Base64-encoded string.

Base64Encode()

Creates a field mapping function that performs URL-safe Base64 encoding of the input string. Assumes that the input is UTF-8 encoded.

Base64Encode(Boolean)

Creates a field mapping function that performs URL-safe Base64 encoding of the input string. Assumes that the input is UTF-8 encoded.

ExtractTokenAtPosition(String, Int32)

Creates a field mapping function that splits a string field using the specified delimiter, and picks the token at the specified position in the resulting split.

JsonArrayToStringCollection()

Creates a field mapping function that transforms a string formatted as a JSON array of strings into a string array that can be used to populate a Collection(Edm.String) field in the index.

UrlDecode()

Creates a field mapping function that performs url decoding of the input string. It assumes that the input string has been url decoded with UTF-8 encoding format.

UrlEncode()

Creates a field mapping function that performs a simple URL-safe encoding of the input string, using UTF-8 encoding format.

Validate()

Validate the object.

Applies to