From user-return-21485-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Jul 9 11:07:52 2012 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 9DA75D6DA for ; Mon, 9 Jul 2012 11:07:52 +0000 (UTC) Received: (qmail 19948 invoked by uid 500); 9 Jul 2012 11:07:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 19577 invoked by uid 500); 9 Jul 2012 11:07:48 -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 19523 invoked by uid 99); 9 Jul 2012 11:07:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2012 11:07:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon@cloudant.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-we0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2012 11:07:40 +0000 Received: by weyu7 with SMTP id u7so797871wey.23 for ; Mon, 09 Jul 2012 04:07:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:x-gm-message-state; bh=znUWEnqkVhu2q2iq2DvksqB1u4FVH8NWGi9HZXAQTmw=; b=KY5Wp9qboP/3qaNnA2icV+9LxXoL/8k9+cSWPynrgH0+PXKKOTYC0aMoVbnGu9nh6j qVUxuxmqNAR6yG5qxkOsSF9FCYL7v11z6xYQgzb29EggoLdN5ia+8a6RaXdSVGqxP9Im /S2kLmYA11t6e8ru7OPmERkrrVMgR/4lWcZV7iUY5ksNzikEox3Kn/3zRjIIVrMZsvZg utDYpLUbSC+s+kA0B4a2VH5s8CdS3Y4PD+jSAqmRwCwQCnzoNG/0ivC0L+nTtfiAd6q3 ajSXUAF+FiDdEYuJgDDJjlyfwhuNhtBbv3ni3T7uc/2KWRFbGXu5XlFjyIcDTsX80tY7 BJ2w== Received: by 10.216.132.18 with SMTP id n18mr9772119wei.194.1341832039658; Mon, 09 Jul 2012 04:07:19 -0700 (PDT) Received: from [192.168.1.73] (host86-160-152-81.range86-160.btcentralplus.com. [86.160.152.81]) by mx.google.com with ESMTPS id t8sm22878553wiy.3.2012.07.09.04.07.18 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 Jul 2012 04:07:18 -0700 (PDT) Date: Mon, 9 Jul 2012 12:07:19 +0100 From: Simon Metson To: user@couchdb.apache.org Cc: couchdb-user@apache.org Message-ID: <85AB492E6D5B4A9E9C95D6AB91E64C6E@cloudant.com> In-Reply-To: References: Subject: Re: Alternate input for map reduce to build views? X-Mailer: sparrow 1.6.1 (build 1081.52) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4ffabb67_632099e0_92" X-Gm-Message-State: ALoCoQnoE6n+BYRPrf6ffIcysmnkps7qVoMs+w5wcmc2TWnomarE4icu5SJwVAOguNk9VQHIq/oi --4ffabb67_632099e0_92 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, That's not currently possible in vanilla CouchDB. You can do it on cloudant.com via a chained map reduce (http://support.cloudant.com/customer/portal/articles/359310-chained-mapreduce-views). I think you could also do the same thing using the rcouch distribution (http://lists.refuge.io/refuge/0154.html) but I've not done that, so I'm not 100% sure. Cheers Simon On Saturday, 7 July 2012 at 19:36, Pulkit Singhal wrote: > Can the input for Map functions be something other than documents? > Can the resulting data that we get by building viewA from documents ... be > fed as a pseudo input document into viewB's map function? > > --4ffabb67_632099e0_92--