couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "HttpViewApi" by PaulCarey
Date Mon, 13 Oct 2008 13:10:34 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by PaulCarey:

The comment on the change is:
Added reduce=false as querying option

    * update=false
    * descending=true
    * skip=number of rows to skip
-   * group=true ''Version 0.8.0 and forward'' 
+   * group=true ''Version 0.8.0 and forward''
+   * reduce=false ''Trunk only (0.9)''
  ''key'', ''startkey'', and ''endkey'' need to be properly JSON encoded values (for example,
startkey="string" for a string value).
@@ -166, +167 @@

  The ''group'' option controls whether the reduce function reduces to a set of distinct keys
or to a single result row.
+ If a view contains both a map and reduce function, querying that view will by default return
the result of the reduce function. The result of the map function only may be retrieved by
passing ''reduce=false'' as a query parameter.
  == Debugging Views ==
  When creating views, CouchDB will check the syntax of the submitted JSON, but the view functions
themselves will not be syntax checked by the Javascript interpreter. And if any one of the
view functions has a syntax error, none of the view functions in that design document will
execute. Perhaps test your functions in a temporary view before saving them in the database.

View raw message