couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "HttpViewApi" by RyszardSzopa
Date Mon, 16 Jun 2008 11:03:37 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 RyszardSzopa:
http://wiki.apache.org/couchdb/HttpViewApi

The comment on the change is:
indexing views in one design doc

------------------------------------------------------------------------------
  
  == Creating Views ==
  
- To create a permanent view, the functions must first be saved into special ''design documents''.
The IDs of design documents must begin with ''_design/'' and have a special views attribute
that have a ''map'' member and an optional ''reduce'' member to hold the view functions.
+ To create a permanent view, the functions must first be saved into special ''design documents''.
The IDs of design documents must begin with ''_design/'' and have a special views attribute
that have a ''map'' member and an optional ''reduce'' member to hold the view functions. All
the views in one design document are indexed whenever any of them gets queried for the first
time.
  
  A design document that defines ''all'', ''by_lastname'', and ''total_purchases'' views might
look like this:
  

Mime
View raw message