3 function searchMergedIds(obj)
7 for(var n=0; n<obj.merged_ids.length; n++)
9 emit(obj.merged_ids[n], null);
14 if (doc.doc_type == "Podcast" || doc.doc_type == "PodcastGroup")
19 if (doc.doc_type == "PodcastGroup")
21 for(var n=0; n<doc.podcasts.length; n++)
23 var podcast = doc.podcasts[n];
24 emit(podcast.id, null);
25 searchMergedIds(podcast);