I seem to recall a view execution issue in one of the early 1.4 clients. Have you tried the latest one, 1.4.4?
Also, you do know your map logic is emitting everything to the view, right? -1 would just create entries with -1 in the 'row'. So, you'll have all docs in there once and ones that match the type/status in there a second time with different sorting. Matt On Sep 8, 2014 12:43 AM, [email protected] wrote: 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]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- 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.
