You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Pulkit Singhal <pu...@gmail.com> on 2012/07/07 20:36:18 UTC

Alternate input for map reduce to build views?

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?

Re: Alternate input for map reduce to build views?

Posted by Simon Metson <si...@cloudant.com>.
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?
> 
>