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 7DF251094F for ; Mon, 25 Nov 2013 22:17:33 +0000 (UTC) Received: (qmail 65432 invoked by uid 500); 25 Nov 2013 22:17:32 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 65391 invoked by uid 500); 25 Nov 2013 22:17:32 -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 65383 invoked by uid 99); 25 Nov 2013 22:17:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 22:17:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ipad.wenk@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-la0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 22:17:26 +0000 Received: by mail-la0-f52.google.com with SMTP id y1so1736399lam.11 for ; Mon, 25 Nov 2013 14:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=ExWl4vwaXvMEhWr8AwIPnvzDl3ZDD2qVNAgGUnk0Axs=; b=m3hqKU1Lu+hhiyuxM2Eq6dewgkd4ax4jZJphAtiXUGlQ/OYjxZVDcLDDyBBaQ2j0VA 0QanmartLrqtWIFjQsj66tzs83km2ZVgf1ZX5vMy2Y5TJkzilj3eLcTqnH5vlGb5duRQ S6ziax6x04Dl9U4swnT7Dv2snhNL4qOSW1gY+WFXFSclKekNVC5gqXiIGZcflWmR9ii+ iqEbC6u/tbbPYnpyk+6ZhAaD9pF3rGK9rD72WUfDVPLBrgQ2QbtduV/5x2EAX0MWDYIC 3CftWOkzuOmHRPhLlbHjWlLJgHFhbfxNHUMaHUP6WOKRECJFo0Zu/AbTNi+MqCKLiq8O 3e7A== X-Received: by 10.152.8.199 with SMTP id t7mr22096881laa.21.1385417825581; Mon, 25 Nov 2013 14:17:05 -0800 (PST) MIME-Version: 1.0 Reply-To: andy@nms.de Sender: ipad.wenk@gmail.com Received: by 10.112.134.42 with HTTP; Mon, 25 Nov 2013 14:16:45 -0800 (PST) In-Reply-To: <5293640D.5060407@gmail.com> References: <5293640D.5060407@gmail.com> From: Andy Wenk Date: Mon, 25 Nov 2013 23:16:45 +0100 X-Google-Sender-Auth: fxO-FUTFiJmXcj01JULpK-GNLlk Message-ID: Subject: Re: view used startkey & endkey problem To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=089e0158ace05c00a704ec07b9af X-Virus-Checked: Checked by ClamAV on apache.org --089e0158ace05c00a704ec07b9af Content-Type: text/plain; charset=UTF-8 I am not sure how it was in old 1.0.4. But is it a problem to upgrade to 1.5? 1.0.4 is really outdated ... On 25 November 2013 15:51, Qaqabincs wrote: > hi, all, > > I use couchdb-1.0.4, and I use a design view: > > findBoys:{ > map:function(doc) { > if(doc.boy){ > emit([doc.boy.height,doc.boy.weight],doc); > }; > } > } > > if I query this view via Futon, there are 13 boys on list, but if I set > a range to this view, such as: > http://localhost:5984/repos/_design/namelist/_view/findBoys?startkey=[400, > 50]&endkey=[1000, 100] > couchdb return me a result like: > {"total_rows":13,"offset":13,"rows":[]} > but there at least a boy whose height=600 & weight=69 ! > > and, when I use couchdb-1.5.0, the view work all right, it can return > the exact data. > > is the "startkey & endkey" not supported by couchdb-1.0.4? or I use a > mistake syntax? > > > > Qaqabincs > -- Andy Wenk Hamburg - Germany RockIt! http://www.couchdb-buch.de http://www.pg-praxisbuch.de GPG fingerprint: C044 8322 9E12 1483 4FEC 9452 B65D 6BE3 9ED3 9588 --089e0158ace05c00a704ec07b9af--