Hello everyone,
In my documents I have a property called “level”. I have 3 views now, according to documents’ “type” properties: “mainForums”, “popularForums” and “newestForums”.
In the mainForums view, my map reduce function checks not only the type but also the “level” and takes docs only with level = 1.
Now, I have to do that for other docs with different “level” values but I don’t know if I should do it by creating more views or doing something else. I don’t think it would be efficient to create more views and check like below but I might be wrong:
if(doc.type == "mainForums" && doc.level == 1)
Any ideas? Thanks.