That should have been,
On 11/14/2013 09:19 PM, Tim Black wrote: > If you > don't want to get all the impression docs because you're only interested > in the count, make another view for the impressions: > > function(doc) { > if (doc.type == 'impression') { > emit(doc.article_id, *1*); // 1 not null > } > } > > var number_of_impressions = GET > ...impressions_view?key=article_id&reduce=true > > Then query for the *article* doc separately, since you probably already know > its > _id anyway. // "article doc" not just "doc" Tim