Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 93322 invoked from network); 18 Dec 2010 17:04:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Dec 2010 17:04:33 -0000 Received: (qmail 6116 invoked by uid 500); 18 Dec 2010 17:04:31 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 5916 invoked by uid 500); 18 Dec 2010 17:04:31 -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 5908 invoked by uid 99); 18 Dec 2010 17:04:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 17:04:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 17:04:25 +0000 Received: by iwn37 with SMTP id 37so1960936iwn.11 for ; Sat, 18 Dec 2010 09:04:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=v6P7/fY423IgicoywkpviDlhtCZkvjcGeTb5cUjnbfM=; b=xENmX1ptUn+rmFmN9d4KqsTGD88R31zIHTnFKr6D3hkwqHGFhRaMSOD2e9OiN8S3BW o6VV8vLqwRUVtg0Nhg4WjxdHsdWtY5JUu9aFHK5ai2tL+mGrk3EBlTfeblf7pgNsHDdr CZWtM0k58SGu4ugt8hbOY9JVWfti6aYf2WT04= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=hxyW7SnywtyJF0z3jWXqPv5XjByBzhGHtOAwPdlI1nDMskoRNwVT67h4gxl9m3YyZi u0YDLCtVY4tvoGc3oxLBRTGCD5+43Hbm5sHNsChWnteHp7c+36J8lfXZvbVHOKYT0Bh2 sVNW9nOrczlENMA1ep8/iCkrBfa4lyglNqErk= Received: by 10.231.10.141 with SMTP id p13mr2043668ibp.131.1292691844822; Sat, 18 Dec 2010 09:04:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.30.72 with HTTP; Sat, 18 Dec 2010 09:03:24 -0800 (PST) In-Reply-To: References: From: Paul Davis Date: Sat, 18 Dec 2010 12:03:24 -0500 Message-ID: Subject: Re: Getting the value of a key in a single doc(Does this require a view) To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sat, Dec 18, 2010 at 11:56 AM, Josh803316 wrote: > Question: > If I know my doc id and my key name, what url should I get to find the va= lue > of a single key in a document? =A0Does this have to be done in a created = view > by sending the id to the view as part of the query string and returning o= nly > the value where the passed query.value.id matches that doc._id? > Just wondering if there was a builtin way to get the value from a single = doc > or if it required a view. > You could do it with a _show. Though technically a view would probably be faster. Especially if you have common combinations of doc id/keys. HTH, Paul Davis