Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 16706 invoked from network); 23 Sep 2009 09:37:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Sep 2009 09:37:51 -0000 Received: (qmail 88532 invoked by uid 500); 23 Sep 2009 09:37:50 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 88466 invoked by uid 500); 23 Sep 2009 09:37:49 -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 88456 invoked by uid 99); 23 Sep 2009 09:37:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2009 09:37:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [68.180.197.132] (HELO web45310.mail.sp1.yahoo.com) (68.180.197.132) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 23 Sep 2009 09:37:39 +0000 Received: (qmail 67162 invoked by uid 60001); 23 Sep 2009 09:37:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1253698635; bh=djoYdUcokmOZN8ZxkpITo/4i0OTFRgIZYka8O4bwzJQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=aB7KdaWv8YJ3RWrTm00PT2u+JqSYTZ3AB3HJ6ACX8IEpw64ALCB+pxxz1FEoan/4GEzVqvBWKzlIU4XTM17dDKCKcUFiQNagZBZP//MidO3uS/nnu3/0PfnWnMgvdP2sg91fLqGgQxP0rsVIpHtDEsMKlPJfeAr1SlE0et0wErY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=VMR4nGnox6rga8pzvD0OnKB9x/Lx4rW18eWAyvgec/9LICbBxOiUTcLh/dDWp0jywgAZkPZ8/IGLndhemcfHAWnSRLcsGImqFzHVh60ekpoq/VE2ePI1qE84YW3B43b1rgrIyOfjgxET1na4k8ReMGrsvcMu6OT0+i/2F7XlaBg=; Message-ID: <703899.67009.qm@web45310.mail.sp1.yahoo.com> X-YMail-OSG: 17jxJm8VM1lDs0YL2zTFY6DjIufR9sdE2hfKgzpOwxySKSP18yLTzIuPxn0dUsfS8r6XXwzVJE3tffVufRqQSM3ChmDICLtjkM.2y8f_4I5N6q3VfOxxnTRgmudSjWS1.njdEc2aXWqe.AA9UfZnT1kIuiveAhgjsb_2yjdCYG.DnFWZ8xY4Ze6.ywWWqOSot51pz0DhlGdv7pPFjg-- Received: from [220.255.7.201] by web45310.mail.sp1.yahoo.com via HTTP; Wed, 23 Sep 2009 02:37:15 PDT X-Mailer: YahooMailRC/157.18 YahooMailWebService/0.7.347.2 Date: Wed, 23 Sep 2009 02:37:15 -0700 (PDT) From: go canal Subject: is there a way to pass a request parameter to a view ? To: user@couchdb.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2022028863-1253698635=:67009" X-Virus-Checked: Checked by ClamAV on apache.org --0-2022028863-1253698635=:67009 Content-Type: text/plain; charset=us-ascii Hello, use case: - change the value of a field of documents question: is there a way to pass a request parameter to the view ? I would imagine some like this: /db/view?key=value then in the view function (doc) { if (doc match some criteria) doc.Type = value; } in the reduce function, I can then return the # of changed documents.... But the view function only accepts one argument 'doc'. Do I have to get a list, then get each document, then put ? does not seem to be efficient. rgds, canal --0-2022028863-1253698635=:67009--