Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 47235 invoked from network); 15 Aug 2009 10:57:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Aug 2009 10:57:51 -0000 Received: (qmail 13071 invoked by uid 500); 15 Aug 2009 10:57:57 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 12974 invoked by uid 500); 15 Aug 2009 10:57:57 -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 12964 invoked by uid 99); 15 Aug 2009 10:57:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Aug 2009 10:57:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of oil.crayons@gmail.com designates 209.85.221.180 as permitted sender) Received: from [209.85.221.180] (HELO mail-qy0-f180.google.com) (209.85.221.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Aug 2009 10:57:48 +0000 Received: by qyk10 with SMTP id 10so1675295qyk.13 for ; Sat, 15 Aug 2009 03:57:28 -0700 (PDT) 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 :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Jdu+4IPfUBCk3PUa/N6AShs3t4EzCkdwjztinT5PCV8=; b=hS6sJV7OsYN4uBAplUlo6matbaWJCd/fE3ngS/lEHN5XLwmtbNyORTBzv9muj2fLq8 x7Q9Ht8Lhh4lKgtiB0t99l8a1ZAmH8/8Yg3/mHCnAdYpVwPlcdy7vWbri66ti3esgRfE ZrsqS7bGb9obYvAVL5REfOhNlNKwAOd5gyuuk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=Lw30UCl8yusL0v/kQ7zSblFmQFgT5UlPT8N/e0mAJYKDlcLEZLw634bXw6bSA7+GAR 0BSIDX6oGV4GlJAGEgF2/sZT+gegBrWWITXEPgyKFliNZqZ/K1UySLFSNlWvH6cZeUpj wxWWPSQHGqCQVawu3rfbV3im+Z3ML+iQJaCq8= MIME-Version: 1.0 Received: by 10.229.93.41 with SMTP id t41mr1558193qcm.81.1250333848126; Sat, 15 Aug 2009 03:57:28 -0700 (PDT) In-Reply-To: <1214618581@web.de> References: <1214618581@web.de> From: Dmitry Unkovsky Date: Sat, 15 Aug 2009 13:57:08 +0300 Message-ID: <558050c20908150357k7d33befbs8db2b0381aeca224@mail.gmail.com> Subject: Re: I'm going mad with reduce To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/8/15 Thomas Bock : > Thank you for answering but ... > > > =C2=A0>Why don't you simply emit a row for each value in Standard? That w= ill > =C2=A0>then become unique rows in the reduce. You'll have to read multipl= e > =C2=A0>rows to get all the values though. > I guess the intent was doing something like map:function(doc) { emit(doc.Standard,null); }, reduce:function(kk,vv,rf){ return null; } and query view with &group_level=3D1 You have then Standards as keys in view result. --=20 DU