nlight-jdev / jcouchdb

Automatically exported from code.google.com/p/jcouchdb
Other
0 stars 0 forks source link

Bulk get not able to include the full document #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When using the bulk get method as described here:
http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API#Fetch_Multiple_Documents_W
ith_a_Single_Request

It is not possible to include the full document when using

Database.queryByKeys(..)

with the Option set to includeDocs(true).

The problem is based in the ValueRow which is not able to hold a "doc" field i 
think.

Original issue reported on code.google.com by moritzp...@gmail.com on 21 Feb 2011 at 11:13

GoogleCodeExporter commented 8 years ago
As you noticed, the ValueRow class has no document field. All Methods which 
have documents included in their results use 
org.jcouchdb.document.ViewAndDocumentsResult<V, D> from which you can get 
ValueAndDocumentRows from.

The query-by-key variant including documents is

org.jcouchdb.db.Database.queryDocumentsByKeys(Class<V>, Class<D>, List<?>, 
Options, JSONParser)

Original comment by ff...@gmx.de on 21 Feb 2011 at 12:16

GoogleCodeExporter commented 8 years ago
Thank you for clearing that up. This will of course suffice.

Original comment by moritzp...@gmail.com on 21 Feb 2011 at 1:03