artkoenig
artkoenig

Reputation: 7257

Getting complete objects from CouchDB after map/reduce

in this example http://guide.couchdb.org/draft/cookbook.html#unique the output rows are grouped to achieve uniqueness, but the value attribute contains only data defined in the reduce step. Is there an efficient way to get the complete objects as values?

Another way would be getting the ids of the objects as values after reduce and query the complete objects in a second step. How would you design the corresponding map/reduce functions in this case.

Upvotes: 0

Views: 119

Answers (1)

lecstor
lecstor

Reputation: 5707

I think you want "?include_docs=true".

check it out here..

http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options

Upvotes: 1

Related Questions