Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 69016 invoked from network); 22 Dec 2008 04:14:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Dec 2008 04:14:12 -0000 Received: (qmail 34352 invoked by uid 500); 22 Dec 2008 04:14:10 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 34234 invoked by uid 500); 22 Dec 2008 04:14:10 -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 34223 invoked by uid 99); 22 Dec 2008 04:14:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Dec 2008 20:14:10 -0800 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: domain of webjogger@gmail.com designates 209.85.198.233 as permitted sender) Received: from [209.85.198.233] (HELO rv-out-0506.google.com) (209.85.198.233) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2008 04:14:02 +0000 Received: by rv-out-0506.google.com with SMTP id g37so1795706rvb.35 for ; Sun, 21 Dec 2008 20:13:40 -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:references; bh=cu2unRtWCDkdi5xwRp730/PRNokS0IctnpIvTb10PAo=; b=CFeHtaROhkTSFu5mug3ozykd6btFSoT4iK2H6Cra6CSeL7BM0RuIpr3/N3JkAGyOgc lxRMinAVota4fGd3Ya7h/RANIOUc3OLJSPbmpyC/iv5IzCJd55fq4VG59uowcRzQmt6I flFZodFw75qLhIsA5vU3GRvo+vOK5MQWvE348= 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:references; b=na+bzeAFZU9fSqJ1RUjREwpEHg7Ab4J2Hzh8fX28Omj3XLLZYU4Or8cW5LHMlZZANS YJCdeNw5BcZ5ON1K5c7Tx5Yexfy/KDOL9N1uc9SGH+W8FK9WVsCFV8jW5bIkdJWsjRe5 YHPkkUZdmUze4gd1kq0q8LCSF3Yg6EFEiMtps= Received: by 10.141.89.13 with SMTP id r13mr2976127rvl.76.1229919220764; Sun, 21 Dec 2008 20:13:40 -0800 (PST) Received: by 10.141.153.4 with HTTP; Sun, 21 Dec 2008 20:13:40 -0800 (PST) Message-ID: <4c69d7170812212013m2bede582pfe0d81915a415899@mail.gmail.com> Date: Sun, 21 Dec 2008 20:13:40 -0800 From: "paul jobs" To: user@couchdb.apache.org Subject: Re: clustering based on 2 columns In-Reply-To: <4c69d7170812212009u5c0f835cr11b4fac72f7d782b@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_59344_21273467.1229919220756" References: <4c69d7170812211449w7b36084dh2e0706ee693bdc6@mail.gmail.com> <2583A30D-5B9C-4426-BCB2-4D736FDD7EAD@gmail.com> <4c69d7170812211912p779b77fexf44cd213603bd4a0@mail.gmail.com> <4c69d7170812211916p4f6fd16er2e45d06e5cbaa42d@mail.gmail.com> <4c69d7170812211927l78457bf2hb0998e4c261e057b@mail.gmail.com> <8BE1477D-84A6-45C8-A63B-0CB5F554FF63@gmail.com> <4c69d7170812212009u5c0f835cr11b4fac72f7d782b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_59344_21273467.1229919220756 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline this is hte result i need but for a particular date Key Value *"animgifts"*88653*"anoninbox"*31*"areucute"*698*"bdayecards"*12756* "crushometer"*252*"datevalentine"*637*"igarden"*43*"luvgifts"*83* "newstickers"*585*"ownmenow"*72*"animgifts"*88652*"anoninbox"*31*"areucute"* 698*"bdayecards"*12746*"crushometer"*252*"datevalentine"*637*"igarden"*43* "luvgifts"*83*"newstickers"*585*"ownmenow"*72 function(doc) { if(doc.date=="2008-12-21") emit(doc.appname, doc.count); } function(keys, values, rereduce) { return sum(values) } my question is how to pass an argument to the view query On 12/21/08, paul jobs wrote: > > antony this doesnt help > Key > Value *"2008-12-20"*17854*"2008-12-21"* 114536 > i get this result when i give your map-reduce view, it doesnt collate by > appnames after collating by date > > On 12/21/08, Antony Blakey wrote: >> >> map: function(doc) { emit(doc.date, doc.count) } >> reduce: function(keys, values, rereduce) { return sum(values) } >> >> query: ...?group=true&key="2008-12-21" >> >> Antony Blakey >> -------------------------- >> CTO, Linkuistics Pty Ltd >> Ph: 0438 840 787 >> >> Success is not the key to happiness. Happiness is the key to success. >> -- Albert Schweitzer >> >> > ------=_Part_59344_21273467.1229919220756--