Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/_includes/api/query_database.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
* `'ok'`: Returns results immediately, even if they're out-of-date.
* `'update_after'`: Returns results immediately, but kicks off a build afterwards.
* `options.update_seq`: Include an `update_seq` value indicating which sequence id of the underlying database the view reflects.
* `options.partition`: If you query a couchdb database with the http adapter and a partitioned index, you need to add the partition key.

For details, see the [CouchDB query options documentation](http://docs.couchdb.org/en/stable/api/ddoc/views.html#get--db-_design-ddoc-_view-view).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ function createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator) {
addHttpParam('inclusive_end', opts, params);
addHttpParam('key', opts, params, true);
addHttpParam('update_seq', opts, params);
addHttpParam('partition', opts, params);

// Format the list of parameters into a valid URI query string
params = params.join('&');
Expand Down Expand Up @@ -708,7 +709,7 @@ function createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator) {
view.seq = currentSeq;
view.sourceDB.activeTasks.remove(taskId);
} catch (error) {
view.sourceDB.activeTasks.remove(taskId, error);
view.sourceDB.activeTasks.remove(taskId, error);
}
}

Expand Down