Add scripts to create myops-getqueryview:
[myops.git] / web / query / views / tags / map.js
diff --git a/web/query/views/tags/map.js b/web/query/views/tags/map.js
new file mode 100644 (file)
index 0000000..c39b457
--- /dev/null
@@ -0,0 +1,9 @@
+function(doc) {
+  if(doc.type == "post" && doc.tags && doc.tags.length) {
+    for(var idx in doc.tags) {
+      if (doc.tags[idx]){ 
+        emit([doc.tags[idx].toLowerCase(), doc.created_at], doc);
+      }
+    }
+  }
+}
\ No newline at end of file