Summary
Adds a function-based field value. The function will take in a document and return an object, which will be the field value.
- Assembly
- Wyam
.AmazonWebServices .dll - Namespace
- Wyam
.AmazonWebServices - Containing Type
- Generate
Cloud Search Data
Syntax
public GenerateCloudSearchData AddField(string fieldName, Func<IDocument, Object> execute)
Parameters
Name | Type | Description |
---|---|---|
fieldName | string | The CloudSearch field name. |
execute | Func |
A function of signature Func<IDocument, object>. If the function returns NULL, the field will not be written. |
Return Value
Type | Description |
---|---|
Generate |
The current module. |