You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2008/10/13 15:10:34 UTC

[Couchdb Wiki] Update of "HttpViewApi" by PaulCarey

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:
http://wiki.apache.org/couchdb/HttpViewApi

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.