Couchbase view based on more then one "document type"?

Is it possible to create a view, which reads another document of a view in addition to the document it is processing? For example, to create a view of beers by state in the beer-sample, you’d for every beer document, you’d get the brewery state and emit state and beer.

Thank you,
– Alex

This is not possible with views. Such processing would best be done at the client side (and is partly due to the map-reduce nature of views. Views are executed on different nodes, each having access to only a subset of the documents).

What you want may be possible using N1QL, though.