MapMetaField(Config<string>, Config<string>, Func<object, object>) Method
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.
Namespace
Statiq.Web.Aws
Containing Type
GenerateCloudSearchData

Syntax

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

Parameters

Name Type Description
fieldName Config<string> The CloudSearch field name.
metaKey Config<string> The meta key. If the meta key does not exist, the field will not be written.
transformer Func<object, 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.