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 CAAE7105F5 for ; Mon, 25 Nov 2013 14:52:33 +0000 (UTC) Received: (qmail 34238 invoked by uid 500); 25 Nov 2013 14:52:31 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 33837 invoked by uid 500); 25 Nov 2013 14:52:30 -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 33758 invoked by uid 99); 25 Nov 2013 14:52:29 -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 14:52:29 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_FONT_FACE_BAD,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lujing7@gmail.com designates 209.85.160.46 as permitted sender) Received: from [209.85.160.46] (HELO mail-pb0-f46.google.com) (209.85.160.46) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 14:52:21 +0000 Received: by mail-pb0-f46.google.com with SMTP id md12so5815934pbc.5 for ; Mon, 25 Nov 2013 06:52:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=3aLU8DfmextUeYnc8YEgaQw0YDZ1fzigzhY3DNHPNak=; b=WWV/qV0IPHux+7uj+N3uKqZyAILtZkTWsJC4LIt8RRgj9upOveZtte9+AYYRI99a1Q b4wjSHyZYgoVrM/AOOWVgkWCSSy7rceipfVFg4T2vSOtZs4yBONPlbDWyI0YEHGY6aJS KA9bg5xU12cNIk1gZyfS6JBiEpq9ibcTIkLU3PCitNRn4BelOUfOxbME7yaVU7fzNnKW K2+5rZ4jFnxAnUDvbd6PHHbvR4HzIcCRcEu7ZqhJ43PxBTQbWBgqJqBEiegNgj/j9iWp zYHCe1gO9DuffnXz+TiMyrWUx+VsF/UGbuSKLAcd+3/Qza1w0Cd/cnyCmwtCuIQP4tM2 1p7g== X-Received: by 10.68.241.5 with SMTP id we5mr27629574pbc.34.1385391120527; Mon, 25 Nov 2013 06:52:00 -0800 (PST) Received: from lujingtekiMacBook-Pro.local ([124.202.190.20]) by mx.google.com with ESMTPSA id ql10sm73779502pbc.44.2013.11.25.06.51.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 06:52:00 -0800 (PST) Message-ID: <5293640D.5060407@gmail.com> Date: Mon, 25 Nov 2013 22:51:57 +0800 From: Qaqabincs User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: "user@couchdb.apache.org" Subject: view used startkey & endkey problem Content-Type: multipart/alternative; boundary="------------060006060902050205020201" X-Virus-Checked: Checked by ClamAV on apache.org --------------060006060902050205020201 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit 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 --------------060006060902050205020201--