Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 29901 invoked from network); 25 Feb 2011 17:06:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2011 17:06:43 -0000 Received: (qmail 23162 invoked by uid 500); 25 Feb 2011 17:06:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 23012 invoked by uid 500); 25 Feb 2011 17:06:40 -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 23000 invoked by uid 99); 25 Feb 2011 17:06:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 17:06:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simonmetson@googlemail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-ww0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 17:06:34 +0000 Received: by wwi18 with SMTP id 18so2117151wwi.23 for ; Fri, 25 Feb 2011 09:06:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:message-id:in-reply-to:references :subject:x-mailer:mime-version:content-type :content-transfer-encoding; bh=UByvD/p0EX+TqmeSS1PlSIZMhK+Mn5UwemN7ArLvxDY=; b=CHGqSCwYx3ESqzQJeEaC2YnKqQprVg3cPGcIeTZsXVVGDXX/YkrNgxvlKyoloOsHZ2 iThdgSkdaMwoen1Ya8WL/Q6nJ5c3oFG8FIyvCDAzvDfg+vv5LjLUqDBm45vvBrj2qbeE 9BqL2cSNEqPeUvYKOteLZrORukum/mMAa8vuQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding; b=Uv8l5RJPA18yywBge5KSyDFwU53RWPDrO/kpz2DPKzDdbb/wO5WoNeUuOAG1Qu79v/ ey37L9sUuAC8wea6ptc8Y6CxlXc3IlqMR++gMrV1ElAlzo3fAswqNR3s3YJeGsZjCMRK XeSNXQyPUCFvtRn/O9h9GsbEVibbFgOsH9YRI= Received: by 10.216.169.202 with SMTP id n52mr2631580wel.15.1298653501034; Fri, 25 Feb 2011 09:05:01 -0800 (PST) Received: from plague.phy.bris.ac.uk (plague.phy.bris.ac.uk [137.222.58.117]) by mx.google.com with ESMTPS id m6sm419893wej.34.2011.02.25.09.04.59 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Feb 2011 09:05:00 -0800 (PST) Date: Fri, 25 Feb 2011 17:04:58 +0000 From: Simon Metson To: user@couchdb.apache.org Message-ID: <7D8B299F964843DF80E9877226D3F31D@googlemail.com> In-Reply-To: References: Subject: Re: View for multiple IDs X-Mailer: sparrow 1.0.1 (build 589.16) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4d67e13a_431bd7b7_934" Content-Transfer-Encoding: 8bit --4d67e13a_431bd7b7_934 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline you can query the view with a post containing a json document like: {"keys": ["key1", "key2", ...]} See http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options Sent with Sparrow On Thursday, 24 February 2011 at 10:39, Martin Hewitt wrote: > Hi all, > > How would I create a view to retrieve documents with the IDs (i.e. > non-numeric, non-sequential): > > ["asdf", "powsf", "aaaa"] > > I would like the three documents that match these IDs, is this doable > in one view or should I just retrieve them individually? > > Thanks, > > Martin > --4d67e13a_431bd7b7_934--