couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "HTTP_view_API" by JensAlfke
Date Thu, 09 Aug 2012 19:46:48 GMT
Dear Wiki user,

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

The "HTTP_view_API" page has been changed by JensAlfke:

Improved documentation of View Generation Options

  == View Generation Options ==
- There is currently one option that affects the data written into a view. To [[|include
documents' local sequence numbers]] in the index, so they will appear in the query results,
add the following to the design document:
+ There are two view indexing options that can be defined in a design document as boolean
properties of an 'options' sub-object. (Unlike the querying options below, these aren't URL
parameters because they take effect when the view index is ''generated'', not when it's ''accessed''.)
  {{{#!highlight javascript
-     options : {
+     "options" : {
-         local_seq : true
+         "local_seq" : true,
+         "include_design" : true
- (Unlike the querying options below, this isn't a URL parameter because it takes effect when
the view index is ''generated'', not when it's ''accessed''.)
+ '''local_seq''' makes documents' local sequence numbers available to map functions (as a
'_local_seq' document property).
+ '''include_design''' causes map functions to be called on design documents as well as regular
  == Querying Options ==
  Columns can be a list of values, there is no set limit to the number of values or amount
of data that columns can hold.

View raw message