Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B9C60C610 for ; Thu, 3 May 2012 16:44:12 +0000 (UTC) Received: (qmail 91709 invoked by uid 500); 3 May 2012 16:44:11 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 91646 invoked by uid 500); 3 May 2012 16:44:11 -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 91638 invoked by uid 99); 3 May 2012 16:44:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 16:44:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.52] (HELO mail-vb0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 16:44:04 +0000 Received: by vbzb23 with SMTP id b23so1894465vbz.11 for ; Thu, 03 May 2012 09:43:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=G16iqAnTUKfZABfCkRV/WYQLlolLt3UEfaEtQ2QzcfA=; b=CElCUJ4UQnQNIAGtPZIJzby8IFCelerd9nU+MsNQFy33zsCoYAsMs0XXz/jNiPhOj/ +fsPz/lCwN4t/kDZC5s0vWESVVe33/ROHPRzMpXLx8HsdSZS/kkuZE47el+YFRqioy6Z 0lV43cglf8uQXTH3YEZQflFMpD23qrzSk33uqiDWohL+gUP1K+vAWZ4H3/al3Yyod0YJ +ZdZJBqz9QtTWdnRlImOzzDWIx6SY2G04tigiCz1I9ZJ1WtLRnU2x9zaLiiyq9v4atbF yJ/BGRWH2a5X+K/x0d2z8pabGioyZDkmdsn/GzQ5XZoWhexZxncY92CVRN8lvKlElE2I Ei9w== MIME-Version: 1.0 Received: by 10.52.26.106 with SMTP id k10mr457859vdg.88.1336063423203; Thu, 03 May 2012 09:43:43 -0700 (PDT) Received: by 10.52.94.197 with HTTP; Thu, 3 May 2012 09:43:43 -0700 (PDT) X-Originating-IP: [156.33.195.149] In-Reply-To: References: Date: Thu, 3 May 2012 09:43:43 -0700 Message-ID: Subject: Re: View Including Documents It Doesn't Seem Like It Should From: Matthew Woodward To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf307d0458bcca4c04bf24819a X-Gm-Message-State: ALoCoQnnTEOzxzSW7I4gkVXXbBC7Ab1JidMzBritqKFtOr+C9cMMT2C74WVmCsJupoa3gRvONUFT --20cf307d0458bcca4c04bf24819a Content-Type: text/plain; charset=ISO-8859-1 On Thu, May 3, 2012 at 9:10 AM, Robert Newson wrote: > To achieve "What I want to be able to pull is all classes for a > specific course ID, ordered by learning method, but within a specific > date range." you will need to emit [doc.course_id, doc.date_range, > doc.learning_method] as your key, and use ?startkey=[course, > start_date]&endkey=[couch, end_date] to get the slice you are after. > The results will be in date order, not learning_method order. > Great -- thanks for the clarification. Appreciate it. -- Matthew Woodward matt@mattwoodward.com http://blog.mattwoodward.com identi.ca / Twitter: @mpwoodward Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments. http://www.gnu.org/philosophy/no-word-attachments.html --20cf307d0458bcca4c04bf24819a--