Add scripts to create myops-getqueryview:
[myops.git] / web / query / views / tags / map.js
1 function(doc) {
2   if(doc.type == "post" && doc.tags && doc.tags.length) {
3     for(var idx in doc.tags) {
4       if (doc.tags[idx]){ 
5         emit([doc.tags[idx].toLowerCase(), doc.created_at], doc);
6       }
7     }
8   }
9 }