Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 75649 invoked from network); 22 Dec 2008 04:51:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Dec 2008 04:51:39 -0000 Received: (qmail 53141 invoked by uid 500); 22 Dec 2008 04:51:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 53111 invoked by uid 500); 22 Dec 2008 04:51:37 -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 53100 invoked by uid 99); 22 Dec 2008 04:51:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Dec 2008 20:51:37 -0800 X-ASF-Spam-Status: No, hits=4.6 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,URIBL_RHS_DOB,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of webjogger@gmail.com designates 209.85.198.238 as permitted sender) Received: from [209.85.198.238] (HELO rv-out-0506.google.com) (209.85.198.238) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2008 04:51:31 +0000 Received: by rv-out-0506.google.com with SMTP id g37so1805172rvb.35 for ; Sun, 21 Dec 2008 20:51:10 -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=h5xRpnLWLNl/u7k4CHJNnbWOzkYuCuZSY5ZKle56Eu0=; b=WI4nhMTkxuxHOTACXqNe5XAF75359TbVjLFGadyFGNNJI9HEPtQqeUh4L7w4nVi3IT UWd9aOFbPrEcdMbN6X6Q14RUCrQH0zdoObNBgViSeuIH7zIfTBJujjOePgnyCw7eLyI9 gqKOXAXqY9QyT1kk/gvJySg69QrdNDotfJPFk= 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=F+K7t8YOnVjIXYryzW3zmka3C/f95OFg3PkcjHMEy6AbcYZ4YSuM06P1EuMR9G053H 6vdsWrrfAkyUeeJWhPlCJepFNFo8jWHIJzrr6zVtSM43DbFoxt9foN5mdZxeSTaedVos TWzkp5Tf1/gnAaiT+GTHokeBfiThD8QiKyfDc= Received: by 10.141.113.6 with SMTP id q6mr2969628rvm.212.1229921470638; Sun, 21 Dec 2008 20:51:10 -0800 (PST) Received: by 10.141.153.4 with HTTP; Sun, 21 Dec 2008 20:51:10 -0800 (PST) Message-ID: <4c69d7170812212051t3a12bbabh4e0d60759291c458@mail.gmail.com> Date: Sun, 21 Dec 2008 20:51:10 -0800 From: "paul jobs" To: user@couchdb.apache.org Subject: Re: clustering based on 2 columns In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_59451_14303158.1229921470628" 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> <2DEF6392-F32A-40E4-AC6F-A60350828FDD@gmail.com> <4c69d7170812212029p53e3b1bep283afd328a0b209b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_59451_14303158.1229921470628 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline /invites/_view/invites/bydate?count=100&group=true&startkey=["2008-12-21"]&endkey=["2008-12-21",{}] cool antony it works *interesting adding ,{} from startkey or removing ,{} from endkey doesnt work * /invites/_view/invites/bydate?count=100&group=true&startkey=["2008-12-21"]&endkey=["2008-12-21"] {"rows":[{"key":["2008-12-21","animgifts"],"value":89324},{"key":["2008-12-21","anoninbox"],"value":31},{"key":["2008-12-21","areucute"],"value":699},{"key":["2008-12-21","bdayecards"],"value":13058},{"key":["2008-12-21","crushometer"],"value":263},{"key":["2008-12-21","datevalentine"],"value":639},{"key":["2008-12-21","igarden"],"value":43},{"key":["2008-12-21","luvgifts"],"value":83},{"key":["2008-12-21","newstickers"],"value":600},{"key":["2008-12-21","ownmenow"],"value":72},{"key":["2008-12-21","searchsharer"],"value":348},{"key":["2008-12-21","searchy"],"value":32},{"key":["2008-12-21","sendlovely"],"value":729},{"key":["2008-12-21","topbffs"],"value":42},{"key":["2008-12-21","ukissme"],"value":10071}]} can you explain how this works On Sun, Dec 21, 2008 at 8:42 PM, Antony Blakey wrote: > http://127.0.0.1:5984/wtf/_view/invites/bydate > ?group=true&startkey=[%222008-12-21%22]&endkey=[%222008-12-21%22,{}] > > > {"rows":[{"key":["2008-12-21","app1"],"value":12},{"key":["2008-12-21","app2"],"value":5}]} > > On 22/12/2008, at 2:59 PM, paul jobs wrote: > > this doesnt work >> /invites/_view/invites/bydate?count=100&group=true&key=[%222008-12-21%22] >> >> {"rows":[]} >> >> >> >> On 12/21/08, Antony Blakey wrote: >> >>> >>> >>> On 22/12/2008, at 2:39 PM, 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 >>>> >>>> >>> I thought you were reducing over all appnames. >>> >>> map: function(doc) { emit([doc.date, doc.appname], doc.count) } >>> query: ...?group=true&key=["2008-12-21"] >>> >>> Antony Blakey >>> ------------- >>> CTO, Linkuistics Pty Ltd >>> Ph: 0438 840 787 >>> >>> He who would make his own liberty secure, must guard even his enemy from >>> repression. >>> -- Thomas Paine >>> >>> >>> >>> > Antony Blakey > ------------- > CTO, Linkuistics Pty Ltd > Ph: 0438 840 787 > > All that is required for evil to triumph is that good men do nothing. > > > ------=_Part_59451_14303158.1229921470628--