couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Cherkashin <>
Subject Help With map function
Date Wed, 23 Feb 2011 01:06:38 GMT

I have a problem, I can't understand how to write map function that solves my problem:

I have a lot of "documents", each document has type (e.g. item,  user), category and brand.
So i have map functions that gives me a list of every document that has type item (that's
easy), but how i can get list of all documents that has brand == xxx or category == yyy or
even brand==xxx&category=zzz (xxx,yyy,zzz different every time). 
View raw message