couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Trivial Update of "View_Snippets" by DaveCottlehuber
Date Fri, 01 Jul 2011 22:08:22 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "View_Snippets" page has been changed by DaveCottlehuber:
http://wiki.apache.org/couchdb/View_Snippets?action=diff&rev1=41&rev2=42

Comment:
credit to rnewson

  
  (Note that I haven't actually used this approach, but this came up in IRC and geohashes
are conceptually a good match. Please reword/refactor this entry if I've stated the problem
or solution poorly.)
  
+ 
+ == Get contents of an object with specific attributes e.g. doc.objects.[0].attribute ==
+ 
+ {{{#!highlight javascript
+ // map
+ function(doc) {
+   for (var idx in doc.objects) {
+     emit(doc.objects[idx], attribute)
+   }
+ }
+ }}}
+ 

Mime
View raw message