lightcouch / LightCouch

CouchDB Java API
www.lightcouch.org
Apache License 2.0
67 stars 70 forks source link

view.queryForInt() error #34

Closed parkjaehyuck closed 9 years ago

parkjaehyuck commented 9 years ago

sorry, I can't write English.

my src.

CouchDB.view("_all_docs").queryForint()
CouchDB.view("views/my-view").queryForInt(); --result : ;Exception in thread "main" org.lightcouch.NoDocumentException: Expecting exactly a single result of this view query, but was: 4593 at org.lightcouch.View.queryValue(View.java:246) at org.lightcouch.View.queryForLong(View.java:226) at com.weebinar.dgbook.server.couchdb.CouchDB.main(CouchDB.java:38)

I respect return value 4593.. but exception occure..

lightcouch commented 9 years ago

Hi,

Do you have a reduce() function for this view?

On Tue, Nov 11, 2014 at 8:56 AM, parkjaehyuck notifications@github.com wrote:

sorry, I can't write English.

my src.

CouchDB.view("_all_docs").queryForint()

CouchDB.view("views/my-view").queryForInt(); --result : ;Exception in thread "main" org.lightcouch.NoDocumentException: Expecting exactly a single result of this view query, but was: 4593 at org.lightcouch.View.queryValue(View.java:246) at org.lightcouch.View.queryForLong(View.java:226) at com.weebinar.dgbook.server.couchdb.CouchDB.main(CouchDB.java:38)

I respect return value 4593.. but exception occure..

— Reply to this email directly or view it on GitHub https://github.com/lightcouch/LightCouch/issues/34.