Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 12414 invoked from network); 11 Feb 2011 05:45:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 05:45:38 -0000 Received: (qmail 64994 invoked by uid 500); 11 Feb 2011 05:45:37 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 64726 invoked by uid 500); 11 Feb 2011 05:45: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 64718 invoked by uid 99); 11 Feb 2011 05:45:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 05:45:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pixelsallover@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 05:45:27 +0000 Received: by wyb28 with SMTP id 28so2098027wyb.11 for ; Thu, 10 Feb 2011 21:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=jnzbY37N0MEw3CZ9wegHeo5SdPoeTRq5MFMh+iHaKUU=; b=pb+st1VcQ1sYJ6GguPZni1CPI5WpoZ+WY9DkE/s1y9k5QTWJ5BjrZUhVp0+6FAi9wP V9YOgw+tLOU/ppa6ey51lI4h+dW5/XmxBaqyWuwMCj29MtL7Dx6IcPx5sSG/0xfxolcR 15+ngWzi+LbItmM9xKnp7mqm9LrarSAkuTwE8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=nv/rP6rmMWfoUWlvU+vJ8KahQA6Rxtz+niohHZWOe2CkYCKGhMNeewcatpHHHOFRSV TUW1lmhFGp8lLsgwO76KHIQrJ9JsxKstqfIecjTlc4Fl6bVKxQD460xo+ZydV3/3qnyW KHwBVN+pm4X27pBzNbFKoeVegqxTpbem9LQdo= Received: by 10.216.150.129 with SMTP id z1mr47051wej.113.1297403105005; Thu, 10 Feb 2011 21:45:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.169.82 with HTTP; Thu, 10 Feb 2011 21:44:44 -0800 (PST) In-Reply-To: References: From: Anup Bishnoi Date: Fri, 11 Feb 2011 11:14:44 +0530 Message-ID: Subject: Re: wrong view results? To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016e6de014e345189049bfb3372 --0016e6de014e345189049bfb3372 Content-Type: text/plain; charset=ISO-8859-1 oh. ok thanks On Thu, Feb 10, 2011 at 9:38 PM, Mark Hahn wrote: > I don't think so. I didn't generate the URL, jquery.couch.js did. It > works fine. > > On Thu, Feb 10, 2011 at 7:17 AM, Anup Bishnoi > wrote: > > also i think you'll have to put square brackets around the start and end > key > > values in the url. > > > > On Thu, Feb 10, 2011 at 6:53 AM, Mark Hahn wrote: > > > >> I didn't have startkey or start_key. I had keystart (duh). Thanks > >> for pointing me in the right direction. > >> > >> On Wed, Feb 9, 2011 at 4:46 PM, Javier Julio > wrote: > >> > It looked odd to me at first too and I just happened to have that page > >> open. Glad I checked. Yeah makes sense its used a lot. Nice that either > one > >> will be supported! > >> > > >> > Are you getting the correct results now Mark? Let us know. > >> > > >> > On Feb 9, 2011, at 7:42 PM, Paul Davis wrote: > >> > > >> >> On Wed, Feb 9, 2011 at 7:37 PM, Javier Julio > >> wrote: > >> >>> No it should be "startkey" and "endkey" (no underscores, has to be > all > >> lowercase otherwise not recognized). > >> http://wiki.apache.org/couchdb/HTTP_view_API > >> >>> > >> >>> On Feb 9, 2011, at 7:31 PM, Paul Davis wrote: > >> >>> > >> >>>> On Wed, Feb 9, 2011 at 5:52 PM, Mark Hahn wrote: > >> >>>>> I'm getting what seems to me to be the wrong view results. Of > course > >> >>>>> if I am doing something wrong it would be no surprise. > >> >>>>> > >> >>>>> I have a view called itemByEmailNum. Here is the definition of > the > >> view ... > >> >>>>> > >> >>>>> function(doc) { > >> >>>>> if(doc.type == 'item') > >> >>>>> emit([doc.email, doc.itemNumber], null); > >> >>>>> > >> >>>>> Here is what I get from that view with no keys specified. > >> >>>>> > >> >>>>> {"total_rows":2,"offset":0,"rows":[ > >> >>>>> > >> > {"id":"86d5d83c65c3d901e29c7567be001233","key":["root",12],"value":null}, > >> >>>>> > >> {"id":"86d5d83c65c3d901e29c7567be001e68","key":["root",13],"value":null} > >> >>>>> ]} > >> >>>>> > >> >>>>> Here is the url of the view that seems to give the wrong results. > >> >>>>> I've added spaces here for clarity. > >> >>>>> > >> >>>>> /bb/_design/bb/_view/itemByEmailNum ? keystart=susan%40elleh.com, > 0 > >> & > >> >>>>> keyend=susan%40elleh.com, 1000000000 & include_docs=true & > >> >>>>> descending=true > >> >>>>> > >> >>>>> This should not have gotten any results since the only docs have > the > >> >>>>> first key of "root" and both the keystart and keyend in this > request > >> >>>>> have a first key of susan%40elleh.com. Here are the results it > >> >>>>> returned. I've snipped the doc properties for clarity. > >> >>>>> > >> >>>>> {"total_rows":2,"offset":0,"rows":[ > >> >>>>> > >> > {"id":"86d5d83c65c3d901e29c7567be001e68","key":["root",13],"value":null,"doc":{ > >> >>>>> ... }}, > >> >>>>> > >> > {"id":"86d5d83c65c3d901e29c7567be001233","key":["root",12],"value":null,"doc":{ > >> >>>>> ... }} > >> >>>>> ]} > >> >>>>> > >> >>>>> Any help would be appreciated. I'm using CouchDB 1.0.1. > >> >>>>> > >> >>>> > >> >>>> keystart and keyend should be start_key and end_key. > >> >>> > >> >>> > >> >> > >> >> Ah right. Older versions are still on the no underscore version. > 1.1.0 > >> >> and beyond will recognize both because people tend to add the > >> >> underscore. > >> > > >> > > >> > > > --0016e6de014e345189049bfb3372--