From user-return-2174-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Dec 17 16:30:43 2008 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 3862 invoked from network); 17 Dec 2008 16:30:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Dec 2008 16:30:43 -0000 Received: (qmail 63888 invoked by uid 500); 17 Dec 2008 16:30:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 63519 invoked by uid 500); 17 Dec 2008 16:30:53 -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 63508 invoked by uid 99); 17 Dec 2008 16:30:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2008 08:30:53 -0800 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajkumars@gmail.com designates 74.125.46.31 as permitted sender) Received: from [74.125.46.31] (HELO yw-out-2324.google.com) (74.125.46.31) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2008 16:30:33 +0000 Received: by yw-out-2324.google.com with SMTP id 3so1479443ywj.5 for ; Wed, 17 Dec 2008 08:30:12 -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=EpnbUh3/0hsxiPx5TDpzGsi2XU797BxPfNWjuou5LZI=; b=Wj4PWiLR7rn72K1kkwSghANmrp00EYQ82VnrIbQAXyBBhg5oPS782pJAwg9wThzacA YfsZeT+zzyaupblb9jb5OKyvJ0RiN/Aaq46jpmxnzwXZh/fqTNIA9JZ6qm790tLqy/fP b88WrzyZUtOc9BT7gorAoFG1u0Z6iwEBHUxr0= 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=kq8g43UA8DWLLg0nYwcsS/EEJIXAUKTh3kj7VaAOyk+8y2NLdrNAKtzCi0hq15sXEP jXdVdmcsIB3ugXVvYZsj/HM6ye93leQk9Q7vwagbLgEMabwLiQRvEEDsThBcsjwkxnh1 cyVKmVTDgMPcQjc9GdvUm4qbc+W8zwB+4ZlOM= Received: by 10.142.147.15 with SMTP id u15mr370655wfd.78.1229531412128; Wed, 17 Dec 2008 08:30:12 -0800 (PST) Received: by 10.142.102.4 with HTTP; Wed, 17 Dec 2008 08:30:12 -0800 (PST) Message-ID: <64de5c8b0812170830m229ca96ag6e73635f626b0a5@mail.gmail.com> Date: Wed, 17 Dec 2008 22:00:12 +0530 From: "Rajkumar S" To: user@couchdb.apache.org Subject: Re: Arguments for Reduce function In-Reply-To: <13ae4dd50812170806r5f18a71cs9c64afca0192c40c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <64de5c8b0812170743s3b80855eg451b96300eac6895@mail.gmail.com> <13ae4dd50812170806r5f18a71cs9c64afca0192c40c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, Thanks a lot for the reply! On Wed, Dec 17, 2008 at 9:36 PM, Paul Carey wrote: > At a guess you're trying to get the doc count based on a particular > characteristic of the doc. No, actually, I am trying to pass an arbitrary argument so that I get the count of elements < that argument and > that argument. kind of like select count(*) from foo where bar<6; > If you wanted to see all the docs, simply query with reduce=false But I want to see all the results after reduce function has run. Right now I am using a command like http://localhost:5984/users/_view/test1/test1?count=50&group=true I would like to do some thing like http://localhost:5984/users/_view/test1/test1?count=all&group=true > Also your reduce function probably wouldn't behave as you'd expect > when invoked as a rereduce - at some point the values param would be > [values.length, a, b] array returned from a previous invocation. Actually I have stripped out the rereduce part when I posted the example, to focus on the problem at hand and simplify the example. I am taking care of rereduce. with regards, raj