I have a model as follows:
class Page{
int statuscode;
}
Then I have this view,
function (doc, meta) {
if(doc.statusCode){
emit(doc.statusCode, 1);
}
}
I want to query this index to get the status codes that is not 200 and 300.
I am using c#.
I can query this view with a key(200)
this gives me the reduce for it. But i want to find reduce that is not 200 and 300. ie: i want to get 400, 404, 500 etc.
How can I do this?