summaryrefslogtreecommitdiff
path: root/src/couch_mrview/src/couch_mrview_http.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couch_mrview/src/couch_mrview_http.erl')
-rw-r--r--src/couch_mrview/src/couch_mrview_http.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/couch_mrview/src/couch_mrview_http.erl b/src/couch_mrview/src/couch_mrview_http.erl
index 004caef09..96f5a8d9d 100644
--- a/src/couch_mrview/src/couch_mrview_http.erl
+++ b/src/couch_mrview/src/couch_mrview_http.erl
@@ -543,6 +543,10 @@ parse_param(Key, Val, Args, IsDecoded) ->
Args#mrargs{update=lazy};
"update" ->
throw({query_parse_error, <<"Invalid value for `update`.">>});
+ "shardkey" ->
+ Args#mrargs{shard_key=couch_util:to_binary(Val)};
+ "shard_key" ->
+ Args#mrargs{shard_key=couch_util:to_binary(Val)};
"descending" ->
case parse_boolean(Val) of
true -> Args#mrargs{direction=rev};