Looking at the Cloudant Java Client, there are several examples regarding retrieving a single document's attachments, for example:
Foo foo = db.find(Foo.class, "exampleId", new Params().attachments());
String attachmentData = foo.getAttachments().get("attachment.txt").getData();
but no examples that I see for returning attachments from multiple documents in one call. Search API also doesn't mention anything about it.
The purpose of retrieving multiple attachments at once would be of course to avoid making multiple unnecessary network calls.
Any idea what the recommended way to retrieve more than one attachment per network call is?
The Cloudant Java client doesn't provide a way to get attachments for multiple documents in one network call because neither Cloudant or CouchDB provide an API to achieve it.