From user-return-17994-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Sep 22 21:27:31 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 E255D7655 for ; Thu, 22 Sep 2011 21:27:30 +0000 (UTC) Received: (qmail 99612 invoked by uid 500); 22 Sep 2011 21:27:29 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 99538 invoked by uid 500); 22 Sep 2011 21:27:28 -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 99528 invoked by uid 99); 22 Sep 2011 21:27:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2011 21:27:28 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of mehdi.elfadil@mango-is.com does not designate 209.85.160.180 as permitted sender) Received: from [209.85.160.180] (HELO mail-gy0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2011 21:27:23 +0000 Received: by gyd8 with SMTP id 8so3260155gyd.11 for ; Thu, 22 Sep 2011 14:27:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.7.132 with SMTP id j4mr6350162pba.102.1316726820779; Thu, 22 Sep 2011 14:27:00 -0700 (PDT) Received: by 10.143.1.10 with HTTP; Thu, 22 Sep 2011 14:27:00 -0700 (PDT) X-Originating-IP: [62.235.186.125] In-Reply-To: References: Date: Thu, 22 Sep 2011 23:27:00 +0200 Message-ID: Subject: Re: Facing conceptual problem querying view From: Mehdi El Fadil To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=bcaec5215c4d6b34d304ad8e5a24 --bcaec5215c4d6b34d304ad8e5a24 Content-Type: text/plain; charset=ISO-8859-1 Hi Neelesh, This is certainly something related to cradle, so you rather should talk about your issue to the maintainer(s) of that library. I found one issue reported, which looks quite like yours: https://github.com/cloudhead/cradle/issues/43 Hope this helps, Mehdi On Fri, Sep 9, 2011 at 7:18 AM, Neelesh Bafna wrote: > hi, > > newbie here working on couchDB ...small query...d present problem i face is > with viewing the query using cradle... > > my map function is 'search' in design document '_design/users' & it > emits 'emit(doc.username, > null);' > > when querying view: db.view('users/search',{key:username},function (err, > res){} > > As per my understanding the 'res' must only contain data which matches > key==username ..right??but here 'res' contains the whole data emitted by > the > map function. > > can you please help me in right direction?i dont understand the way 'key' > is > being used and reflected. > > Plz help, thanks in advance. > > -- > Regards > Neelesh Bafna > -Have a great day- > --bcaec5215c4d6b34d304ad8e5a24--