GenerateCloudSearchData.

AddField(string, Func<IDocument, Object>) Method

Summary

Adds a function-based field value. The function will take in a document and return an object, which will be the field value.

Syntax

public GenerateCloudSearchData AddField(string fieldName, Func<IDocument, Object> execute)

Parameters

Name Type Description
fieldName string The CloudSearch field name.
execute Func<IDocument, Object> A function of signature Func<IDocument, object>. If the function returns NULL, the field will not be written.

Return Value

Type Description
GenerateCloudSearchData The current module.
GitHub