/
Custom - Map Reduce
Custom - Map Reduce
/custom/mapreduce/{inputcollection}/{map}/{reduce}/{query}
Runs a mongodb map reduce job immediately and only once.
Authentication
Required, see Auth - Login
Arguments
inputcollection (required)
The input collection you want to run the map reduce job on. Can be DOC_METADATA for the documents collection or another custom map reduce results collection.
map (required)
The mongodb map to run.
reduce (required)
The mongodb reduce to run.
query (required)
The query to run on the input collection, the community ids will be added to whatever query gets submitted.
Example
Example Response
{"response":{"action":"Custom Map Reduce Run","success":true,"message":"Map Reduce ran successfully","time":2413},"data":"[]"}
Error Response
{"response":{"action":"Custom Map Reduce Run","success":false,"message":"error running map reduce","time":285}}
Related content
Knowledge - Document - Query
Knowledge - Document - Query
More like this
Custom - Saved Query - Schedule Job
Custom - Saved Query - Schedule Job
More like this
Custom - Saved Query - Update Job
Custom - Saved Query - Update Job
More like this
Community JSON formats
Community JSON formats
More like this
Run Custom Hadoop Mapper/Combiner/Reducer
Run Custom Hadoop Mapper/Combiner/Reducer
More like this
Documents and their sub-objects (entities, associations, user metadata, aggregations)
Documents and their sub-objects (entities, associations, user metadata, aggregations)
More like this