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 E1E7E78A3 for ; Mon, 3 Oct 2011 01:29:02 +0000 (UTC) Received: (qmail 54380 invoked by uid 500); 3 Oct 2011 01:29:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 54341 invoked by uid 500); 3 Oct 2011 01:29:00 -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 54333 invoked by uid 99); 3 Oct 2011 01:29:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 01:29:00 +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 ziggythehamster@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 01:28:54 +0000 Received: by bke5 with SMTP id 5so6385324bke.11 for ; Sun, 02 Oct 2011 18:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=HKFP1KvSbyGzIUbUl7BOzrPMg5QEw/PHullR5xp5zB0=; b=JZUsphNb0TWffyVvHpPDZtRVAscK1JegR7w3qSZakkO2g1jK7BrnWqPyAuz8u7bxSt CndSncWROZQ4GMPIn7Yuj4Ikz/jAPT7R85M8XbP+cD5aC1mQiwTgHq38qFNOsyfOPIJo omUGewQAbNmPY3bBWp16xHGLbbSRobgxsz+iY= MIME-Version: 1.0 Received: by 10.223.42.24 with SMTP id q24mr14167530fae.45.1317605312908; Sun, 02 Oct 2011 18:28:32 -0700 (PDT) Sender: ziggythehamster@gmail.com Received: by 10.223.114.138 with HTTP; Sun, 2 Oct 2011 18:28:32 -0700 (PDT) Received: by 10.223.114.138 with HTTP; Sun, 2 Oct 2011 18:28:32 -0700 (PDT) In-Reply-To: References: Date: Sun, 2 Oct 2011 20:28:32 -0500 X-Google-Sender-Auth: K3oP4IlmQpZcLfKnbde327hZJgg Message-ID: Subject: Re: Emiting a Doc from Erlang View From: Keith Gable To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001517473310a14dc104ae5ae43e --001517473310a14dc104ae5ae43e Content-Type: text/plain; charset=ISO-8859-1 I wouldn't emit a document in a view because you can always use include_docs to get the doc. On Oct 2, 2011 7:52 PM, "Thomas Van de Velde" wrote: > Hi, > > How can I emit the document as part of an Erlang view? Emit(Something,*Doc*) > doesn't work. > > Is there a good sample app or set of unit tests to look though? I looked at > the test that ships with Futon but it doesn't show this. > > Thanks! > > Thomas --001517473310a14dc104ae5ae43e--