Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 24255 invoked from network); 10 Mar 2009 12:46:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2009 12:46:57 -0000 Received: (qmail 13960 invoked by uid 500); 10 Mar 2009 12:46:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 13937 invoked by uid 500); 10 Mar 2009 12:46:54 -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 13926 invoked by uid 99); 10 Mar 2009 12:46:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 05:46:54 -0700 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 paul.joseph.davis@gmail.com designates 74.125.46.31 as permitted sender) Received: from [74.125.46.31] (HELO yw-out-2324.google.com) (74.125.46.31) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 12:46:48 +0000 Received: by yw-out-2324.google.com with SMTP id 2so7568ywt.5 for ; Tue, 10 Mar 2009 05:46:27 -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 :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=3YwFOfX6jYCEFGsrjJE/VDs0BCRlhPTweZvubBgXfrU=; b=yA2i4JAFS3VLrJ1Nsr4tCnVhrg2r6odCIURbrIn/XZsksCK1n0Ro1uPkNzMwOIvOaz QaPZInS8rf02LZnApvE+J6lX2m+lmuHwJ2U1ivNkx3gkg7jWTJEfHrq6MHeX1YAZSfxK Cx834x4ggvtU6YLr1ax3nVSI0zyb6Cn/eVbAQ= 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:content-transfer-encoding; b=YdiKCNpxdEw6f1SLibFrUQo+05SWMXko5KQsL7n5dtgcCcEOmo8Vessk5E7+SGPfMK C07HWwoeZULTCmtOWLqMvvNd4GK5McX518r2o/XYUd3A4zmx5L4fKgQM5mAU41HtSWIF 2dmETRPtWxqO97csOIngKZiI/uzlwxaqvEVrc= MIME-Version: 1.0 Received: by 10.100.134.10 with SMTP id h10mr4419904and.28.1236689187053; Tue, 10 Mar 2009 05:46:27 -0700 (PDT) In-Reply-To: <64a10fff0903100540y4cffade2r8516cb5d4a7114ec@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> <64a10fff0903100540y4cffade2r8516cb5d4a7114ec@mail.gmail.com> Date: Tue, 10 Mar 2009 08:46:27 -0400 Message-ID: Subject: Re: JSONQuery From: Paul Davis To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Mar 10, 2009 at 8:40 AM, Dean Landolt wrote: > On Tue, Mar 10, 2009 at 7:34 AM, Christopher Lenz wrote: > >> On 10.03.2009, at 13:23, Dean Landolt wrote: >> >>> As an example of what I mean, JSONSchema already has an implementation in >>> another language (in this case, python again[1]). And JSONQuery even less >>> javascript-idiomatic. If you'd like, I'd be happy to try my hand at >>> implementing it in erlang -- but I was thinking it would be most helpful >>> for >>> view ops (thus, in js). It would be pretty convenient if there were >>> agreed-upon path semantics -- specifically for things like searching. >>> >> >> Everyone in this thread seems to know where/how JSONPath would fit into >> CouchDB, but I have no idea :) >> >> What would this be useful for? > Same as Dean, the one place I really saw using it a lot would be in full text searching. I'm not *as* convinced for document fragments, but if there were a somewhat standardized version I don't see any reason to not support it. > > One way -- retrieving doc fragments. Another -- for json-based configuration > of fti, rather than having to interpret js functions via rhino or > python-spidermonkey (no offense Paul -- that's still a kickass project ;). > There are probably quite a few others that will shake out -- but having an > agreed-upon way to reference portions of a doc (or a view) should prove > useful. > Heh. None taken and I agree whole heartedly.