Tim Johnson
11/18/2021, 6:19 PMTim Johnson
11/18/2021, 6:21 PMEric B
11/18/2021, 6:23 PMTim Johnson
11/18/2021, 6:24 PMTim Johnson
11/18/2021, 6:25 PMEric B
11/18/2021, 6:27 PMTim Johnson
11/18/2021, 6:28 PMscottvonduhn
11/18/2021, 6:29 PMEric B
11/18/2021, 6:30 PMTim Johnson
11/18/2021, 6:33 PMEric B
11/18/2021, 7:01 PMehcanadian
11/18/2021, 7:21 PMNElliott
11/19/2021, 9:07 AM[
{searchresult:{},staticvalues:{}},
{searchresult:{},staticvalues:{}}
]
then the data for each map iteration would have the info you need.
So build that static data you need for every record and then iterate your results building out the new array including both pieces of data to be passed forward. In your map you're just going to pull in data.searchresult and data.staticvalues
or am I missing something? (this was in response to "OR in addition to the above, is there a way to retain a value in a variable through the entire map stage?")Tim Johnson
11/29/2021, 4:16 PMehcanadian
11/29/2021, 7:44 PMmap
since you're passing the data to it. What data do you need to be persistent across all the map iterations? At any rate, in map
, you can write to mapContext so it gets grouped and passed to reduce
. (There is an example in NS help for M/R which relates to invoices. It may shed some light.)NElliott
11/30/2021, 8:34 AMscottvonduhn
11/30/2021, 12:47 PM