> On Feb 24, 2015, at 9:24 AM, Eno <[email protected]> wrote:
> 
> My understanding is that reduce only happens when group=true is supplied via 
> query string right?

If the view has a reduce function defined, queries will reduce by default 
unless you add ?reduce=false.

> So Im calling GET on 
> http://localhost:5984/database/_design/fabric/_view/seen?group=true 
> <http://localhost:5984/database/_design/fabric/_view/seen?group=true>
You need to use ?group_level=1. (The boolean ?group query isn’t needed; as far 
as I know, it’s an unnecessary evolutionary relic from old versions of CouchDB.)

The best documentation of the REST API for queries is CouchDB’s 
<http://docs.couchdb.org/en/latest/api/ddoc/views.html>. (I apologize for our 
comparable docs 
<http://developer.couchbase.com/mobile/develop/references/couchbase-lite/rest-api/design-document/get---db--design--design-doc--view--view-name-/index.html>
 being, um, somewhat less comprehensive. Fortunately the API is basically the 
same.) But we do have good documentation on the principles of querying 
<http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/query/index.html#grouping>,
 including grouping.

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/182C9F7B-79B7-4D37-B2E1-4DD8E553B317%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to