Closed laroque closed 11 years ago
Update to these map/reduce:
function(doc) { if (doc.run_number >= 0) { egg_file = '' if (doc.mantis.command.output) { egg_file = doc.mantis.command.output } emit(doc.run_tag, {'run_number':doc.run_number,'run_timestamp':doc.run_timestamp,'egg_files':[egg_file]}); } } function(keys, values, rereduce) { run_number = values[0].run_number run_timestamp = values[0].run_timestamp egg_files = [] for(var i=0; i<values.length; i++) { egg_files = egg_files.concat(values[i].egg_files) } return {'run_number':run_number, 'run_timestamp':run_timestamp,'egg_files':egg_files} }
done
Update to these map/reduce: