incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: startkey_docid
Date Wed, 26 Aug 2009 14:07:32 GMT
Daniel,

startkey_docid should not be quoted. Document id's are required to be
strings, so there's no need for the quoting.


On Wed, Aug 26, 2009 at 9:51 AM, Daniel
Trümper<daniel.truemper@googlemail.com> wrote:
> Had some time to get some more details about my problem.
>
> My question is: does the document id passed as 'startkey_docid' need to be
> encoded as JSON String? Because I see some strange effects:
>
> With the document ids being "testdoc1", "testdoc2", "testdoc3" the
> startkey_docid does not work at all.
>
> With the document ids being the md5 of an url I have the problem that
> 'startkey_docid=md5' works but 'startkey_docid="md5"' does not.
>
> Example:
>  startkey=["DocType", "POST"]&endkey=["DocType", "POST"]&startkey_docid=md5
>
> works but
>
>  startkey=["DocType", "POST"]&endkey=["DocType",
> "POST"]&startkey_docid="md5"
>
> does not... Unfortunately the jcouchdb API converts the startkey_docid
> parameter to a JSON String, so paging does not work at the moment...
>
> Any ideas?
>

Fix the library? :)

> Daniel
>


HTH,
Paul Davis

Mime
View raw message