Hi,
I am using couchbase-client 1.4.0.
*My View:*
function (doc, meta) {
if(doc.type == "RAW_EMAIL_TYPE" && doc.status == "EMAIL_FETCHED"){
emit(meta.id);
}
}
Query query = new Query().setIncludeDocs(true);
ViewResponse viewResponse = couchbaseClient.query(view, query);
I am getting response by making curl request but couchbaseClient.query() is
not returning anything and also stops the execution of the code. i.e The
execution is not moving to the next line.
*Curl Request:*
curl http://xxx:xxxxx@localhost:8092/xxxxxx/_design/xxxxxx/_view/abcview
I just added an emit statement to that view which looks like below
function (doc, meta) {
if(doc.type == "RAW_EMAIL_TYPE" && doc.status == "EMAIL_FETCHED"){
emit(meta.id);
}
emit('-1');
}
Now the code is executes as expected. But the issues is that it fetches all
the docs in every run.
Can anyone help me to fix this issue.
Thank you very much in advance.
--
Thank you,
Arther
--
You received this message because you are subscribed to the Google Groups
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.