[
https://issues.apache.org/jira/browse/COUCHDB-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Newson resolved COUCHDB-2280.
------------------------------------
Resolution: Invalid
Hi,
There are only two view generation options (described at
https://wiki.apache.org/couchdb/HTTP_view_API#View_Generation_Options) and
include_docs is not one of them.
The options object in the design document does not affect query time parameters.
> Default view options in design document
> ---------------------------------------
>
> Key: COUCHDB-2280
> URL: https://issues.apache.org/jira/browse/COUCHDB-2280
> Project: CouchDB
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: JavaScript View Server
> Reporter: Weixiang Guan
>
> I have put ??"options":{"include_docs":true}?? in my design document and in
> my *map* functions I emitted something like ??{"_id":doc._id}??. However when
> I query the view without explicitly specifying ??include_docs=true?? I do not
> get the linked documents (the other way around, when I specify
> ??include_docs=true??, I get the desired results with linked documents). So I
> think the problem is the ??"options"?? field in the design document is not
> working. In the documentation I saw actually, one can put query parameters in
> ??"options"?? field to make those default, and I did not see any other
> requirement to make this work. Please check this.
> BTW, I am using CouchDB 1.5 (1.6 is not working on my computer, don't know
> why).
--
This message was sent by Atlassian JIRA
(v6.2#6252)