Skip to content

Instantly share code, notes, and snippets.

@dreverri
Created February 7, 2012 21:06
Show Gist options
  • Save dreverri/1761945 to your computer and use it in GitHub Desktop.
Save dreverri/1761945 to your computer and use it in GitHub Desktop.
curl -XPOST http://localhost:8098/mapred \
-H 'Content-Type: application/json' \
-d '{"inputs":"docs",
"query":[{"map":{"language":"erlang",
"source":"fun(Object, _KD, _A) ->
Key = riak_object:key(Object),
[[Key, 1]]
end."}}]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment