couchdb map/reduce view: counting only the most recent items
问题 I have the following documents. Time stamped positions of keywords. { _id: willem-aap-1234, keyword:aap, position: 10, profile: { name: willem }, created_at: 1234 }, { _id: willem-aap-2345, keyword:aap, profile: { name: willem }, created_at: 2345 }, { _id: oliver-aap-1235, keyword:aap, profile: { name: oliver }, created_at: 1235 }, { _id: oliver-aap-2346, keyword:aap, profile: { name: oliver }, created_at: 2346 } Finding the most recent keywords per profile.name can be done by: map: function