I actually use couchbase with the java client, but when i query my view, the result is empty. But when i check the number of rows returned, it returns the good number of rows in the database :
ViewResult result = bucket.query(ViewQuery.from("logs", "all_logs"));
System.out.println("Number of rows " + result.totalRows() + " ; success " + result.success()); // Number of rows 12 ; success true
for (ViewRow row : result) {
System.out.println("hello"); // never here
System.out.println(row);
}
I try to do :
List<ViewRow> rows = result.allRows();
System.out.println("count : " + rows.size()); // count : 0
My view is in production mode.
Any idea ?
Thanks