Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 11094 invoked from network); 21 Dec 2008 04:26:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Dec 2008 04:26:41 -0000 Received: (qmail 43539 invoked by uid 500); 21 Dec 2008 04:26:39 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 43504 invoked by uid 500); 21 Dec 2008 04:26:39 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 43493 invoked by uid 99); 21 Dec 2008 04:26:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Dec 2008 20:26:39 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.198.234 as permitted sender) Received: from [209.85.198.234] (HELO rv-out-0506.google.com) (209.85.198.234) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Dec 2008 04:26:31 +0000 Received: by rv-out-0506.google.com with SMTP id f9so2598891rvb.2 for ; Sat, 20 Dec 2008 20:26:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=AN1GYrrtNrjpoMTrr/niJOqW24ueuYFeNtdm5RxhKTM=; b=gwVPHfnBYIyWcM6mba4107s2xQs/zcDpZmu2UMxiU4Q0BoqWPoPUSOcR0OBGUJx+nc qiXAeSgpeV0FEV7WfNoBs2lqO8JDvFVrN5laeo5nwqevNOxLfIDmTfP/DZQ5WV0r24Qv FyZf/YDQP/FXsKRV0FCIPRTkxhlQ5zJRAZt7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kK9VYjTYQ+sL1noNcoTDlVbU8znP5Y45Jc1X6o7R0U/7dsY4nM2b4PrsuwGxG/dcXi uWbqzf3+mOMjMqiRuLcNTA/U3Wj+KG9SslHe1ut7d8+qGGUncivKiZhx9Jx0vQQRfNLJ p4SVn/FeJMi08FtT5UE78vD6PTRMgNb+ikckw= Received: by 10.141.84.17 with SMTP id m17mr2486371rvl.64.1229833570493; Sat, 20 Dec 2008 20:26:10 -0800 (PST) Received: by 10.141.153.2 with HTTP; Sat, 20 Dec 2008 20:26:10 -0800 (PST) Message-ID: Date: Sat, 20 Dec 2008 23:26:10 -0500 From: "Paul Davis" To: user@couchdb.apache.org Subject: Re: what does map do? In-Reply-To: <4c69d7170812202022s142cee63p8dbbb497f842db00@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4c69d7170812202022s142cee63p8dbbb497f842db00@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 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* >