mapContext.value
Property Description |
The value to be processed during the map stage.
Note:
Each value cannot exceed 1 megabyte. |
Type |
string |
Since |
2015.2 |
Syntax
The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see Map/Reduce Script Samples.
// Add additional code.
...
// Assume that the search result is a list of phone call records. This snippet parses the results
// and uses the values of the title and the message fields from each record.
var searchResult = JSON.parse(context.value);
var title = searchResult.values.title;
var message = searchResult.values.message;
...
// Add additional code.