couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: Is map reduce on attachments possible?
Date Tue, 09 Feb 2010 09:44:42 GMT
On Tue, Feb 09, 2010 at 10:35:15AM +0100, Markus Jelsma wrote:
> Read about the HTTP document API [1]. You'll notice there are two kinds of
> attachments, one of which is inline. You can emit name, length and
> content-type of inline attachments by accessing the _attachments special
> field. But you cannot access the base64 encoded data within map/reduce,
> you will need to fetch a document attachment by including
> ?attachments=true to your query.

In other words, the answer is "no, the attachment contents are not currently
available in map/reduce functions".

It has been suggested before though. It might be cool to be able to map
images to thumbnails, for example. However, neither JSON nor Javascript are
ideally suited to handling binary data.

Mime
View raw message