incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Gabriel <a...@barbalex.ch>
Subject Re: Make a three
Date Thu, 29 Sep 2011 04:09:28 GMT
yes!
Thanks, Alex

2011/9/29, kowsik <kowsik@gmail.com>:
> Does this help?
>
> http://blog.mudynamics.com/2010/10/02/using-couchdb-group_level-for-hierarchical-data/
>
> K.
> ---
> http://blitz.io
> @pcapr
>
> On Wed, Sep 28, 2011 at 12:49 PM, Andrew Cherkashin <andoriyu@gmail.com>
> wrote:
>> Can you provide an example of query?
>>
>> On Wed, Sep 28, 2011 at 12:42 PM, Jens Alfke <jens@couchbase.com> wrote:
>>> If I understand what you’re asking for, you can create a view whose keys
>>> are [category, sub_category, brand]:
>>>        function(doc) {emit([doc.category, doc.sub_category, doc.brand],
>>> null);}
>>> Then you can use grouping in queries to get all the subcategories of a
>>> category, or all the brands.
>>>
>>> —Jens
>>
>


-- 




*****************************************************************



Alexander Gabriel
Wiesenstrasse 22
8800 Thalwil
079/ 372 51 64
alex@barbalex.ch
ww.barbalex.ch

Mime
View raw message