Query view not returning any results
I am new to the Couchbase Python SDK and am having an issue with retrieving view data.
I can retrieve a row successfully using:
res = cb.get("SESS_1111_61412333555")
On the Couchbase server I have design doc "audit" containing view "Postpaid" that returns 10 documents in the results. However when I try to retrieve the documents using the Python SDK I get no results.
view_results = cb.query(design="audit", view="Postpaid") log("results: %r" % view_results) log("view contains %d indexed_rows" % view_results.indexed_rows) log("view contains %d rows_returned" % view_results.rows_returned)
results: View<Design=dev_audit, View=Postpaid, Query=Query:'', Rows Fetched=0> view contains 0 indexed_rows view contains 0 rows_returned
Since a get() works I know I am connected to the bucket ok, so what could be the issue?
No answers yet