From user-return-16126-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu May 5 18:21:49 2011 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 7402220E4 for ; Thu, 5 May 2011 18:21:49 +0000 (UTC) Received: (qmail 44342 invoked by uid 500); 5 May 2011 18:21:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 44299 invoked by uid 500); 5 May 2011 18:21:47 -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 44291 invoked by uid 99); 5 May 2011 18:21:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 18:21:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rasmussen.bryan@gmail.com designates 209.85.216.52 as permitted sender) Received: from [209.85.216.52] (HELO mail-qw0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 18:21:40 +0000 Received: by qwb8 with SMTP id 8so2395353qwb.11 for ; Thu, 05 May 2011 11:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=7g+sidjooA9kC6GrRXMe8HDFOQIN4K7THGZHPGn+iPA=; b=Z07g71wfGe1oAkuyIbwrM2kPRvAdCWts+pAmzfYw1lMxbMmHT1P99oGGE+Emn4aB4V O/uu/zEf3np+gAbXQgEt8zeK9RrnDv4xaZRCRCjNjeBggpmlY98jTV7cBq9LygC8Ov6M Ag2pVRoHN+MUM+DQ2QVS0dnzZS5h3S2d4Mnlg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pV/Ia6VjLtFYercer8zfCFHCZdTSOGm8dHH42JWj7WQlE4B0ChQb0kNqH0aOUVGFW8 vqEpnsJJYDi7wRjOHlnGfm7TEuX6BGFr3pkWHXDaxXEx1OmeiUNC+brujXdvEdpig57C 9eO4JH8pHvcTgRg04M1Yw+j4J1oqlge7NknOw= MIME-Version: 1.0 Received: by 10.229.17.140 with SMTP id s12mr1811376qca.107.1304619679528; Thu, 05 May 2011 11:21:19 -0700 (PDT) Received: by 10.229.211.129 with HTTP; Thu, 5 May 2011 11:21:19 -0700 (PDT) Date: Thu, 5 May 2011 20:21:19 +0200 Message-ID: Subject: view - first 50 with favorite rating or first 50 From: bryan rasmussen To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org I am wondering how to do this: I have documents with a rating field, which can have the value "favorite". I want to return the first 50 favorites but if there are less than 50 favorites I want to return documents without favorite status until the count of 50 is reached - so if I can only find 40 favorites then I have to return those 40 and then another 10 non-favorites. Thanks, Bryan Rasmussen