Query key not equal to

Hello,

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#. how can i do this?

Hi you can do this through one of the SDKs using the .query method. With .Net you can follow the view query examples here: http://docs.couchbase.com/developer/dotnet-2.1/view-queries.html
thanks
-cihan

1 Like