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 D09F6793D for ; Sun, 4 Sep 2011 13:00:48 +0000 (UTC) Received: (qmail 12581 invoked by uid 500); 4 Sep 2011 13:00:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 12507 invoked by uid 500); 4 Sep 2011 13:00:45 -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 12499 invoked by uid 99); 4 Sep 2011 13:00:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Sep 2011 13:00:45 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ljw1001@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; Sun, 04 Sep 2011 13:00:38 +0000 Received: by wyj26 with SMTP id 26so4796320wyj.11 for ; Sun, 04 Sep 2011 06:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xCdUxOPx2a6PFyTAAacDU5irwMVP82mDXhTVGv0hpZA=; b=swbLtkKiwvpATrWcUiBJwhhUBmmGifhTAJ6ktEQpS7YUnoBao5WZsUAfrQs54kPbu/ X6vz4FWqW8PaYEAGdYZ5CmaQB2bp8QIHmdiMY3MUxf9iynQrJT3+zt26JnSBnqZA+uK8 mih5d4O8LDaYTnLfUi+I5zWLoC0WGucFkge3A= MIME-Version: 1.0 Received: by 10.227.163.71 with SMTP id z7mr2926490wbx.24.1315141218633; Sun, 04 Sep 2011 06:00:18 -0700 (PDT) Received: by 10.227.6.215 with HTTP; Sun, 4 Sep 2011 06:00:18 -0700 (PDT) In-Reply-To: References: Date: Sun, 4 Sep 2011 09:00:18 -0400 Message-ID: Subject: Re: noobie problem getting view results From: Larry White To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=00248c0ef03a2a89e804ac1d2d0f X-Virus-Checked: Checked by ClamAV on apache.org --00248c0ef03a2a89e804ac1d2d0f Content-Type: text/plain; charset=ISO-8859-1 Thanks. It wasn't clear from the wiki what i was doing wrong, but then I realized that it might appear in the url of the web interface when I run it there, and it does, in a slightly modified version. thanks. On Sun, Sep 4, 2011 at 8:50 AM, Victor Nicollet wrote: > Hello, > > You're querying for the design document itself, so that is what you are > receiving. To get the contents of a specific view, you need to ask for that > view: > > http://localhost:5984/better1/_design/all_products/_view/all_products > > You may want to peek at the Wiki on that topic for more information : > http://wiki.apache.org/couchdb/HTTP_view_API > > -- VN > > On 4 September 2011 14:06, Larry White wrote: > > > Hi, > > I'm sending a query that looks like this: > > > > http://localhost:5984/better1/_design/all_products > > > > and I get the view query text, instead of the results: > > > > > > > {"_id":"_design/all_products","_rev":"5-0263a7865636ac57eae960b8ad2b63ac","language":"javascript","views":{"all > > products":{"map":"function(doc) {\n if (doc.drr_class=='Product') { > > \n\temit(null, doc); \n\t} \n}"}}} > > > > How do I get the actual results (ie a list of 'products'). It works > > fine from within the Couchbase web interface. > > > > Thanks much. > > > --00248c0ef03a2a89e804ac1d2d0f--