Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A1FB9EB8 for ; Tue, 21 Feb 2012 22:15:25 +0000 (UTC) Received: (qmail 80199 invoked by uid 500); 21 Feb 2012 22:15:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 80163 invoked by uid 500); 21 Feb 2012 22:15:23 -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 80155 invoked by uid 99); 21 Feb 2012 22:15:23 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 22:15:23 +0000 Received: from localhost (HELO mail-iy0-f180.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 22:15:23 +0000 Received: by iabz7 with SMTP id z7so13248741iab.11 for ; Tue, 21 Feb 2012 14:15:22 -0800 (PST) Received-SPF: pass (google.com: domain of rnewson@apache.org designates 10.50.236.34 as permitted sender) client-ip=10.50.236.34; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rnewson@apache.org designates 10.50.236.34 as permitted sender) smtp.mail=rnewson@apache.org Received: from mr.google.com ([10.50.236.34]) by 10.50.236.34 with SMTP id ur2mr22981666igc.20.1329862522781 (num_hops = 1); Tue, 21 Feb 2012 14:15:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.236.34 with SMTP id ur2mr18554720igc.20.1329862522740; Tue, 21 Feb 2012 14:15:22 -0800 (PST) Received: by 10.42.6.72 with HTTP; Tue, 21 Feb 2012 14:15:22 -0800 (PST) In-Reply-To: <0231BE3BDF624C70937D04418C3E99F2@gmail.com> References: <0231BE3BDF624C70937D04418C3E99F2@gmail.com> Date: Tue, 21 Feb 2012 22:15:22 +0000 Message-ID: Subject: Re: Howto: "nested result" From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable There's also https://github.com/rnewson/couchdb-lucene. B. On 21 February 2012 22:13, Matthias Jakel wr= ote: > the only possible way to get the documents, is to make 2 requests. the fi= rst fetches X and all Y's (emiting a object with the Y's id and the include= _docs method) and the last makes an request to the db/_all_docs endpoint wi= th an keys parameter including all Z-document-ids as an array. You can't do= any "joins" in couchdb. there is no database-side document linking logic. > > greets, > > Matthias