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 "HTTP_view_API" by JensAlfke
Date Tue, 30 Aug 2011 17:52:26 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:
http://wiki.apache.org/couchdb/HTTP_view_API?action=diff&rev1=57&rev2=58

Comment:
Added clarification of scope of "language" property

    }
  }
  }}}
- The ''language'' property tells CouchDB the language of the view functions, which it uses
to select the appropriate ViewServer (as specified in your couch.ini file). The default is
to assume Javascript, so this property can be omitted for Javascript views.
+ The ''language'' property of the design document tells CouchDB the language of the functions
inside it -- map, reduce, validate, show, list, etc. Based on this it selects the appropriate
ViewServer (as specified in your couch.ini file). The default is to assume Javascript, so
this property can be omitted for Javascript-based design documents.
  
  == Altering/Changing Views ==
  To change a view or multiple view just alter the design document (see HttpDocumentApi) they
are stored in and save it as a new revision. This causes all the views in that design document
to be rebuilt on the next access in case the view code has been changed.

Mime
View raw message