Yup, they're not even stored in the same b+tree.

On 19 November 2012 12:08, Cliffano Subagio <[email protected]> wrote:

> 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 <[email protected]> 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 <[email protected]> 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.
> > >
> >
>

Reply via email to