Created
March 19, 2010 16:46
-
-
Save johnthethird/337799 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Riak / Ripple code to use a regex to find keys | |
| results = Riak::MapReduce.new(client) | |
| .add("my_bucket") | |
| .map("function(value,keyData,arg) { | |
| var re = new RegExp(arg); | |
| return value.key.match(re) ? [value.key] : []; | |
| }", :keep => true, :arg => "^foo").run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment