incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliffano Subagio <cliff...@gmail.com>
Subject Re: local documents cannot be fetched using _all_docs even though it exists
Date Mon, 19 Nov 2012 12:08:50 GMT
I see, thanks for the explanation.
I assume local documents are excluded from _bulk_docs for the same reason.


On Mon, Nov 19, 2012 at 9:19 PM, Robert Newson <rnewson@apache.org> wrote:

> Local docs are used for internal things like replication checkpoints, they
> are deliberately excluded from _all_docs and _changes as they are not part
> of the normal database.
>
>
> On 19 November 2012 05:38, Cliffano Subagio <cliffano@gmail.com> wrote:
>
> > Hi,
> >
> > I have 2 documents in the same database:
> > - a local document with _id: _local/feed
> > - a standard document with _id: hello1
> >
> > When I try to retrieve them all using _all_docs
> > url: http://localhost:5984/about/_all_docs?include_docs=true
> > method: POST
> > header: Content-Type: application/json
> > request body: {"keys":["_local/feed","hello1"]}
> >
> > It always results in the local document not found, but the standard
> > document found.
> > {"total_rows":10,"offset":0,"rows":[
> > {"key":"_local/feed","error":"not_found"},
> >
> >
> {"id":"hello1","key":"hello1","value":{"rev":"1-967a00dff5e02add41819138abb3284d"},"doc":{"_id":"hello1","_rev":"1-967a00dff5e02add41819138abb3284d"}}
> > ]}
> >
> > What could be the reasoning behind local document not being accessible
> via
> > _all_docs ?
> >
> > Cheers,
> > Cliff.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message