couchbaselabs / TouchDB-Android

CouchDB-compatible mobile database; Android version
239 stars 60 forks source link

startkey_docid / endkey_docid #77

Open henchan opened 12 years ago

henchan commented 12 years ago

Using the parameters below to restrict an http POST request to a single doc ?startkey_docid=doc1&endkey_docid=doc1 {"keys":[[0,false],[1,false],[2,false],[3,false],[4,false],[5,false],[6,false],[7,false]]}

This correctly restricts a couchdb, but fails to restrict the same request against a touchdb.

{ "_id": "_design/testviews", "_rev": "27-8dd24e311c8e7e026c4d95724bfa6ee5", "views": { "test_doc_id": { "map": "function(doc) {var i=0; for (i=0;i<doc.tag.length;i++) {emit([i,doc.tag[i]], null)} }" } } }