Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 31546 invoked from network); 30 Apr 2010 20:39:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Apr 2010 20:39:37 -0000 Received: (qmail 8784 invoked by uid 500); 30 Apr 2010 20:39:36 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 8725 invoked by uid 500); 30 Apr 2010 20:39:35 -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 8717 invoked by uid 99); 30 Apr 2010 20:39:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 20:39:35 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erich.oliphant@gmail.com designates 209.85.222.177 as permitted sender) Received: from [209.85.222.177] (HELO mail-pz0-f177.google.com) (209.85.222.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 20:39:27 +0000 Received: by pzk7 with SMTP id 7so565225pzk.30 for ; Fri, 30 Apr 2010 13:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=7Zl/oAIE1dZOUGsFXlYFHq14wSgWiZ2gKs3ws2p1vEw=; b=JAwYpTu6juYd00z8w1L/Z4N93G87IsVDxc0gjrJOh4tVaaIK+wdYdjyjkl7oetTr92 qNJ0uPN/kIKMxZ1wIT/jCUfqIenYDOTlQpYOlrjVZ9vHVfI6fzq2xnSbkTWuk0xZX/zE 3Bav9cEyY5sF2BFHlbwbsyq3WkRJwwPzFTZtM= 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; b=FeQ2lZPZdijVCOQ4pAbyQLWbryy8azdUR+gp1BMHWSu16DyRwp38AoJiKi2rBDNctv l24lkMVx5qG1mg2nF+5/O5ju7cY1BOwwyHMwPJn5q3jiAd/mDeSIDlh7dSIjq3u702dn tNvtQclJ1Cd0xMula08qe6fRArn/nn4IFQOCk= MIME-Version: 1.0 Received: by 10.141.2.9 with SMTP id e9mr1355513rvi.51.1272659946056; Fri, 30 Apr 2010 13:39:06 -0700 (PDT) Received: by 10.140.201.21 with HTTP; Fri, 30 Apr 2010 13:39:06 -0700 (PDT) In-Reply-To: References: <21FA014E-CFEC-4B6E-A17F-9DFC9903F52B@gmail.com> Date: Fri, 30 Apr 2010 16:39:06 -0400 Message-ID: Subject: Re: results without couch 'metadata' From: erich oliphant To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cd112bc012e4604857a3cdf X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd112bc012e4604857a3cdf Content-Type: text/plain; charset=ISO-8859-1 Ok, but do I have to regen JSON manually in this casem since the _list function is designed to spit out arbitrary formats ? On Wed, Apr 28, 2010 at 12:58 PM, Paul Bonser wrote: > And of course, it didn't occur to me to mention that there was already > an even more general solution already in place... > > On Tue, Apr 27, 2010 at 7:47 PM, Chris Anderson wrote: > > You can use a _list or _show function for this. > > > > Sent from my iPhone > > > > On Apr 27, 2010, at 4:47 PM, Paul Bonser wrote: > > > >> I'm pretty sure there is no such thing, but if it was to be added, I > >> think it would be better to add something a little more general, such > >> as "just_field" so you could do something like > >> ?just_field=id/key/doc/value to get a list of all the > >> ids/keys/docs/values, respectively. > >> > >> I don't like the name "just_field", that's just the first thing that > >> came to mind, but I could see such a feature being useful. > >> > >> There'd be no need to wrap an extra doc around it, it could just be a > >> json array returned, and it wouldn't make sense to strip out the _id > >> and _rev, so with your example, you'd end up with the following being > >> returned: > >> > >> [ > >> {"_id":"1","_rev":"1","important":"stuff"} > >> ] > >> > >> On Tue, Apr 27, 2010 at 5:36 PM, erich oliphant > >> wrote: > >>> > >>> Hi is there a way to get couch results without the extra metadata? > >>> Perhaps > >>> instead of 'include_docs' where you get: > >>> > >>> > >>> > {"total_rows":1498,"offset":350,"rows":[{"id":"1","key":"1","doc":{"_id":"1","_rev":"1","important":"stuff"}}]} > >>> > >>> a 'docs_only' or something option that would return something like > >>> {[{"important","stuff"}]} > >>> > >>> -- > >>> Erich Oliphant > >>> > >>> "There are, in fact, two things, science and opinion, the former begets > >>> knowledge, the latter ignorance" > >>> -- Hippocrates of Cos > >>> > >> > >> > >> > >> -- > >> Paul Bonser > >> http://probablyprogramming.com > > > > > > -- > Paul Bonser > http://probablyprogramming.com > -- Erich Oliphant "There are, in fact, two things, science and opinion, the former begets knowledge, the latter ignorance" -- Hippocrates of Cos --000e0cd112bc012e4604857a3cdf--