Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2280

Default view options in design document

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • JavaScript View Server
    • None
    • Regular Contributors Level (Easy to Medium)

    Description

      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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            edwardcarlfox Weixiang Guan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: