You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Dave Ray <da...@gmail.com> on 2009/11/07 21:01:25 UTC
Indexing Design Documents
Hi. Based on my limited experimentation, it appears that design
documents aren't included in views. This may seem weird, but is there
any way to allow this?
Thanks,
Dave
Re: Indexing Design Documents
Posted by Paul Davis <pa...@gmail.com>.
Dave,
Not to my knowledge actually. I just grep'ed to find those two names
for certain. And I'm pretty sure there's at least one or two more
options supported...
Feel free to wiki that. :)
Paul Davis
On Sat, Nov 7, 2009 at 11:32 PM, Dave Ray <da...@gmail.com> wrote:
> Paul,
>
> Works perfectly. Thanks! Is the "options" member documented anywhere?
>
> Dave
>
> On Sat, Nov 7, 2009 at 10:53 PM, Paul Davis <pa...@gmail.com> wrote:
>> On Sat, Nov 7, 2009 at 3:01 PM, Dave Ray <da...@gmail.com> wrote:
>>> Hi. Based on my limited experimentation, it appears that design
>>> documents aren't included in views. This may seem weird, but is there
>>> any way to allow this?
>>>
>>> Thanks,
>>>
>>> Dave
>>>
>>
>> Dave,
>>
>> If your _design document includes an "options" member with
>> "include_design" set to true, your view should see design docs.
>> Something like:
>>
>> {
>> "_id": "foo",
>> "options": {"include_design": true},
>> "views": ...
>> }
>>
>> HTH,
>> Paul Davis
>>
>
Re: Indexing Design Documents
Posted by Dave Ray <da...@gmail.com>.
Paul,
Works perfectly. Thanks! Is the "options" member documented anywhere?
Dave
On Sat, Nov 7, 2009 at 10:53 PM, Paul Davis <pa...@gmail.com> wrote:
> On Sat, Nov 7, 2009 at 3:01 PM, Dave Ray <da...@gmail.com> wrote:
>> Hi. Based on my limited experimentation, it appears that design
>> documents aren't included in views. This may seem weird, but is there
>> any way to allow this?
>>
>> Thanks,
>>
>> Dave
>>
>
> Dave,
>
> If your _design document includes an "options" member with
> "include_design" set to true, your view should see design docs.
> Something like:
>
> {
> "_id": "foo",
> "options": {"include_design": true},
> "views": ...
> }
>
> HTH,
> Paul Davis
>
Re: Indexing Design Documents
Posted by Paul Davis <pa...@gmail.com>.
On Sat, Nov 7, 2009 at 3:01 PM, Dave Ray <da...@gmail.com> wrote:
> Hi. Based on my limited experimentation, it appears that design
> documents aren't included in views. This may seem weird, but is there
> any way to allow this?
>
> Thanks,
>
> Dave
>
Dave,
If your _design document includes an "options" member with
"include_design" set to true, your view should see design docs.
Something like:
{
"_id": "foo",
"options": {"include_design": true},
"views": ...
}
HTH,
Paul Davis