git://git.onelab.eu
/
myops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
web/query/views/tags/map.js
@@ -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