by baltcode · 15y ago · 0 comments
[1] http://api.mongodb.org/python/1.9%2B/examples/map_reduce.htm...
mapper = lambda x: (x['word'],1)
Or something of the the following flavor:
mapper = JSCode('function(x) {return (x.word,1)}')