GenerateCloudSearchData.

MapMetaField(string, string, Func<Object, Object>) Method

Summary

Adds a mapping from meta key to CloudSearch field. When provided, the contents of the meta key will be written to the provided field name.

Syntax

public GenerateCloudSearchData MapMetaField(string fieldName, string metaKey, Func<Object, Object> transformer = null)

Parameters

Name Type Description
fieldName string The CloudSearch field name.
metaKey string The meta key. If the meta key does not exist, the field will not be written.
transformer Func<Object, Object> An optional function that takes a string and returns an object. If specified, it will be invoked on the meta value prior to serialization. If the function returns NULL, the field will not be written.

Return Value

Type Description
GenerateCloudSearchData The current module.
GitHub