Cloudant:如何从多个文档中检索附件?

Cloudant: How to retrieve attachments from multiple documents?

查看 Cloudant Java Client,有几个关于检索单个文档附件的示例,例如:

Foo foo = db.find(Foo.class, "exampleId", new Params().attachments());
String attachmentData = foo.getAttachments().get("attachment.txt").getData();

但我没有看到在一次调用中从多个文档返回附件的示例。 Search API也只字不提。

一次检索多个附件的目的当然是为了避免进行多次不必要的网络调用。

知道每次网络调用检索多个附件的推荐方法是什么吗?

Cloudant Java 客户端不提供在一次网络调用中获取多个文档附件的方法,因为 Cloudant 或 CouchDB 均未提供 API 来实现它。