Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 17755 invoked from network); 8 Nov 2009 08:57:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Nov 2009 08:57:45 -0000 Received: (qmail 80998 invoked by uid 500); 8 Nov 2009 08:57:44 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 80908 invoked by uid 500); 8 Nov 2009 08:57:44 -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 80898 invoked by uid 99); 8 Nov 2009 08:57:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Nov 2009 08:57:44 +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: domain of smrchy@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Nov 2009 08:57:33 +0000 Received: by fg-out-1718.google.com with SMTP id 22so335574fge.5 for ; Sun, 08 Nov 2009 00:57:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=789fGd3OfRqQQWBm/r+qRl+omOgNfjY6neyIVglyD9c=; b=VbE52TOl5VHGYKBERDyO6gpIY9Alc1WahwWQ8Q9zY3ZnD80Mofng776EyzCJGyNYUU H7K7LTpiAJSUF80ZVmkQDtY39474b0J0x/uB59Pan/wTm/VAG3ye96zCDK5Yq09b3ov6 R82QqncZa+KD1HGwoB/B5qDk9me+0Ze6QGJUw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=OwYnEY/lKTxYs0afS0CmUyuu05c8o8oIbMwpdSlyscgPf2aN8bVrWhkj9xGaoapzed MueV5u5fig8DJcqm85nvDbek1JfWM5CXbS4UTlwJZO/EiIDUWosF6EaVWpg+1f56s11A DlNaV+9VpXnQ/Edq7gfS1oFIkKJ7We0+u2Zgc= MIME-Version: 1.0 Received: by 10.86.203.35 with SMTP id a35mr7221459fgg.44.1257670633051; Sun, 08 Nov 2009 00:57:13 -0800 (PST) In-Reply-To: References: Date: Sun, 8 Nov 2009 09:57:13 +0100 Message-ID: Subject: Re: View to show top tags From: Smrchy To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=00c09ffb56d653d89d0477d84343 X-Virus-Checked: Checked by ClamAV on apache.org --00c09ffb56d653d89d0477d84343 Content-Type: text/plain; charset=ISO-8859-1 The example you mention does not work at all (throws an internal JSON error) while this example: http://wiki.futuretoby.com/Retrieve_The_Top_N_Tags_in_CouchDB does run but the results are not anywere near right. If i modify the map function to only use a subset of the docs in my DB the values seem to get closer to the real count. On Sat, Nov 7, 2009 at 5:03 PM, Nils Breunese wrote: > Check out the wiki, it has an example for exactly your use case: > http://wiki.apache.org/couchdb/View_Snippets#top_n_tags > > Nils Breunese. > ________________________________________ > Van: Smrchy [smrchy@gmail.com] > Verzonden: zaterdag 7 november 2009 16:52 > Aan: user@couchdb.apache.org > Onderwerp: View to show top tags > > I just started with CouchDB trying to migrate a current project over. > > My database consists of 200K+ documents and each document contains a field > like this: > > "Taglist": [ > "London", > "Travel", > "Hotel", > "Europe"] > > What would be the best way to display the top n-tags of all the documents. > Does anybody have an example for this task? > > Thank you > Patrick > > De informatie vervat in deze e-mail en meegezonden bijlagen is uitsluitend > bedoeld voor gebruik door de geadresseerde en kan vertrouwelijke informatie > bevatten. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking > van deze informatie aan derden is voorbehouden aan geadresseerde. De VPRO > staat niet in voor de juiste en volledige overbrenging van de inhoud van een > verzonden e-mail, noch voor tijdige ontvangst daarvan. > --00c09ffb56d653d89d0477d84343--