Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 50955 invoked from network); 10 Nov 2009 15:23:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 15:23:07 -0000 Received: (qmail 97596 invoked by uid 500); 10 Nov 2009 15:23:05 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 97535 invoked by uid 500); 10 Nov 2009 15:23:05 -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 97525 invoked by uid 99); 10 Nov 2009 15:23:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 15:23:05 +0000 X-ASF-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of manolopm@gmail.com designates 209.85.218.218 as permitted sender) Received: from [209.85.218.218] (HELO mail-bw0-f218.google.com) (209.85.218.218) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 15:23:03 +0000 Received: by bwz10 with SMTP id 10so126047bwz.35 for ; Tue, 10 Nov 2009 07:22:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=GDjiyV6qmE0B2Ft8fkC9B+G0jNujGhHDZWlPyRh7R8A=; b=MUco8Vo33QsNLFCgAX4lDEcADchLCSrxvbHB45Qs3bVroj72PSJEG9KR5Hy1M5JjYM 7hMNStlYkTBr4vZHikaV8GJ1UFZ4nHRbMaB8CR4FW3qWt87/cchJTeOfPcPtbFGk5A77 TpWC/1Yl8fj1k/+iAQc/2k53MPCPYJsMYjO2U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=sDEBwD10sbB1SZJAPI6tLRdZ28iYrN9wnR7oMmWljGZQAkPPH9xk9671aTMtkyTXFQ GKm22VnlM9Ub/CWapoIb2Gmjp/ixLweoLeL/loAKGUIOO5wewfnvtKgA9adckdooSOiW VzWnq2eJJ33X+Bsdg3W1rFdX1dimrLWDISUuA= MIME-Version: 1.0 Received: by 10.223.74.91 with SMTP id t27mr30560faj.62.1257866562168; Tue, 10 Nov 2009 07:22:42 -0800 (PST) From: Manolo Padron Martinez Date: Tue, 10 Nov 2009 15:22:22 +0000 Message-ID: <55fad2460911100722g750f84bbk28a9a823f2f77295@mail.gmail.com> Subject: Recursive views? To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable hi: I have some docs with N levels of hashes nesteds.. I wan't to get a view that show the name of the fields and the fields that have into. I mean something like this: function(doc) { for (var i in doc) if (typeof doc[i] =3D=3D=3D "object") for (var j in doc[i]) emit(i, j); } but for every level. There is any way to make something like that? Regards from Canary Islands Manuel Padr=C3=B3n Mart=C3=ADnez