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

Mango index should return information about ddoc id/rev

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Mango
    • None

    Description

      What it does now:

      $ curl -XPOST http://localhost:16984/test/_index -d '{"index":{"fields": ["foo"]}, "ddoc": "foo", "type": "json"}'
      {"result":"created"}
      

      What document had been created? With what revision? Such response is inconsistent with all other operations upon documents update. To guess what had been just created I have to listen changes feed or fetch all the indexes and search there by query definition to find my design document. That's not good.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kxepal Alexander Shorin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: