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(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