Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 21699 invoked from network); 8 Feb 2011 07:20:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Feb 2011 07:20:26 -0000 Received: (qmail 47970 invoked by uid 500); 8 Feb 2011 07:20:25 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 47565 invoked by uid 500); 8 Feb 2011 07:20:22 -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 47542 invoked by uid 99); 8 Feb 2011 07:20:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Feb 2011 07:20:20 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [82.207.94.85] (HELO mail.imcmilk.com.ua) (82.207.94.85) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Feb 2011 07:20:12 +0000 Received: from [192.168.2.47] (jabber.chimc.ua [192.168.2.47]) by mail.imcmilk.com.ua (Postfix) with ESMTP id 9E5AD1CC65 for ; Tue, 8 Feb 2011 09:19:51 +0200 (EET) Message-ID: <4D50EE8A.6040009@imcmilk.com.ua> Date: Tue, 08 Feb 2011 09:19:38 +0200 From: Oleg Krevosheev User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: Native List Functions with CouchDB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Here's how I did. { "_id": "_design / test", "_rev": "1931-98f79c92675e9541e448a62377dcc067 ", "language": "erlang", "views": { "vtest": { "map": "fun ({Doc}) -> \ n Key = proplists: get_value (<<\" key \ ">>, Doc, null), \ n Val = proplists: get_value (<<\" val \ ">>, Doc, null), \ n Emit (Key, Val) \ n end." } } "lists": { "ltest": "fun (Head, {Req}) -> Send (<<\" Test \ ">>) end." } } View works fine. Makes a request http://192.168.2.47:5984/proxy_02_2011/_design/test/_list/ltest/vtest nothing shows up