Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 29089 invoked from network); 10 Mar 2009 15:44:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2009 15:44:42 -0000 Received: (qmail 38234 invoked by uid 500); 10 Mar 2009 15:44:36 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 38190 invoked by uid 500); 10 Mar 2009 15:44:36 -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 38179 invoked by uid 99); 10 Mar 2009 15:44:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 08:44:36 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jchris@gmail.com designates 74.125.44.28 as permitted sender) Received: from [74.125.44.28] (HELO yx-out-2324.google.com) (74.125.44.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 15:44:27 +0000 Received: by yx-out-2324.google.com with SMTP id 31so954687yxl.5 for ; Tue, 10 Mar 2009 08:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=kJJ+1WVxQjRm80ArGwmul7010n71ylyH4LkJBXG8Fkk=; b=Ac62lAVuRDypUvFE0F3SZFdgeLKLLpvr0jR5J+6DsSlxU22duobhQT6TvBXH5FH47R Xrr09R0ccMZ634WF1Kt1ckOdaOYCiwFI+u0iVWJ1ifRD6+FCS17L74geagFG+EIibinR 6M1w6s/M+zoX/muyehbc9EAUeK7NAk6z7C1wU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=ujg7HlLHU/DeXfXSyCVNQ5b4xNq+w0BbdQSEbSODBBuXSoBjMe36A2K2RoH4JuEsXV LRlC95dRkKOvLfpQO782vQ5rDUHmkw6s/EizaNE2NV9MegA4Ht+0pX/LPBt533drDr9t vCB1gCZkMMrIRxpiBMwqPypduj6Cdma+8laLQ= MIME-Version: 1.0 Sender: jchris@gmail.com Received: by 10.142.77.11 with SMTP id z11mr3134980wfa.277.1236699845643; Tue, 10 Mar 2009 08:44:05 -0700 (PDT) In-Reply-To: <7db9abd30903100842w2f09fb08i3ca5a9373b8c593e@mail.gmail.com> References: <20090310095437.GA726@tumbolia.org> <20090310115033.GF1876@tumbolia.org> <64a10fff0903100459u2aebf66cj3bfd0044528f3082@mail.gmail.com> <3376B25D-50D8-4FBD-86C5-8501F77446CE@apache.org> <64a10fff0903100523m49817317w9dfa567faa40ac97@mail.gmail.com> <57BA1F75-FE37-4F99-BFCD-76454C0122BB@gmx.de> <20090310123859.GH1876@tumbolia.org> <7db9abd30903100842w2f09fb08i3ca5a9373b8c593e@mail.gmail.com> Date: Tue, 10 Mar 2009 08:44:05 -0700 X-Google-Sender-Auth: 92b0c705892017d7 Message-ID: Subject: Re: JSONQuery From: Chris Anderson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Mar 10, 2009 at 8:42 AM, kowsik wrote: > If i remember the original context, it's for pulling out document > snippets using json-path's. So we don't have to write a view for each > of the pieces of data we want. > > So if you have something like: > > { > =A0 =A0_id: "12345", > =A0 =A0comments: [ 'blah', 'foo' ], > =A0 =A0meta: { > =A0 =A0 =A0 =A0author: "me" > =A0 =A0} > } > > GET /db/12345?path=3Dmeta/author > > will just return "me" instead of the entire document. > > K. Which is a paradigm case for a reusable _show function. ;) Chris --=20 Chris Anderson http://jchris.mfdz.com