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 MattLyon
Date Fri, 03 Apr 2009 08:55:26 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 MattLyon:
http://wiki.apache.org/couchdb/HTTP_view_API

------------------------------------------------------------------------------
  
  ''key'', ''startkey'', and ''endkey'' need to be properly JSON encoded values (for example,
startkey="string" for a string value). 
  
- A JSON structure of ''{"keys": ["key1", "key2", ...]}'' can be posted to any user defined
view or ''_all_docs'' to retrieve just the view rows matching that set of keys. Rows are returned
in the order of the keys specified. Combining this feature with ''include_docs=true'' results
in the so-called ''multi-document-fetch'' feature. Please note that if the view being called
contains a reduce function, you CANNOT at this point do ''reduce=false'' to run only the map
element, and therefore also cannot do ''include_docs=true''.
+ A JSON structure of ''{"keys": ["key1", "key2", ...]}'' can be posted to any user defined
view or ''_all_docs'' to retrieve just the view rows matching that set of keys. Rows are returned
in the order of the keys specified. Combining this feature with ''include_docs=true'' results
in the so-called ''multi-document-fetch'' feature. 
  
  If you specify ''?limit=0'' you don't get any data, but all meta-data for this View. The
number of documents in this View for example.
  

Mime
View raw message