From user-return-10337-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sat May 01 20:29:48 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 6300 invoked from network); 1 May 2010 20:29:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 May 2010 20:29:47 -0000 Received: (qmail 59697 invoked by uid 500); 1 May 2010 20:29:46 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 59658 invoked by uid 500); 1 May 2010 20:29:46 -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 59650 invoked by uid 99); 1 May 2010 20:29:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 May 2010 20:29:46 +0000 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=AWL,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.223.191] (HELO mail-iw0-f191.google.com) (209.85.223.191) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 May 2010 20:29:42 +0000 Received: by iwn29 with SMTP id 29so1780729iwn.17 for ; Sat, 01 May 2010 13:29:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.190.204 with SMTP id dj12mr6689481ibb.9.1272745761160; Sat, 01 May 2010 13:29:21 -0700 (PDT) Received: by 10.231.38.194 with HTTP; Sat, 1 May 2010 13:29:21 -0700 (PDT) In-Reply-To: <815269.31509.qm@web113009.mail.gq1.yahoo.com> References: <416345.15204.qm@web113007.mail.gq1.yahoo.com> <815269.31509.qm@web113009.mail.gq1.yahoo.com> Date: Sat, 1 May 2010 16:29:21 -0400 Message-ID: Subject: Re: Question on selecting on reduce values From: Jarrod Roberson To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016363b888cfbbff304858e36ee --0016363b888cfbbff304858e36ee Content-Type: text/plain; charset=ISO-8859-1 On Sat, May 1, 2010 at 3:04 PM, Cesar Delgado wrote: > That's awesome Randall, thanks. I have to play around with it a little > more but at least I got something useful now. > > I just created a list that looks like this: > > function(head, req) { > var row ; > while (row = getRow()) { > if (row.value > 1){ > send(row.key + "\n") ; > } > } > } > > True that what I'm getting returned is just the name of the duplicated > entries, but it's a good start. > > Cheers! > > -Cesar > > here is an example of a list function that does something like what you are trying to do http://www.vertigrated.com/blog/2010/04/generic-ad-hoc-queries-in-couchdb/ -- Jarrod Roberson 678.551.2852 --0016363b888cfbbff304858e36ee--