3 function searchPodcast(podcast, podcast_id)
5 for(var source in podcast.tags)
7 for(var n in podcast.tags[source])
9 emit([podcast_id, podcast.tags[source][n]], sourceWeight(source));
14 function sourceWeight(source)
20 else if (source == "delicious")
30 if(doc.doc_type == "Podcast")
32 searchPodcast(doc, doc._id);
34 else if(doc.doc_type == "PodcastGroup")
36 for(var p in doc.podcasts)
38 searchPodcast(p, p.id);