couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Davis" <paul.joseph.da...@gmail.com>
Subject Re: what does map do?
Date Sun, 21 Dec 2008 04:26:10 GMT
Do any of your documents have a doctype attribute?
Do any of your documents that have a doctype attribute have a doctype
attribute value of "WikiPage"?
Do the documents in your db that have a doctype attribute that is
exactly "WikiPage" have both a defined title and revision attribute?

On Sat, Dec 20, 2008 at 11:22 PM, paul jobs <webjogger@gmail.com> wrote:
>   1. function(doc) {
>   2.   if (doc.doctype == "WikiPage") {
>   3.     map([doc.title, doc.revision], doc);
>   4.   }
>   5. }
>   *
>   *
>   *this doesnt output any rows, is there any purpose as to this view*
>   *
>   *
>   *reference: http://prematureoptimization.org/blog/archives/59*
>

Mime
View raw message