Created
January 16, 2013 19:18
-
-
Save mattsnyder/4549917 to your computer and use it in GitHub Desktop.
Filtering keys by date range in Riak
This file contains 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::MapReduce.new(Ripple.client). | |
add(@bucket_to_filter, | |
[ | |
[:tokenize, "-", 1], #Note: 1 based index | |
[:between, start_time.to_s(:key), end_time.to_s(:key)] | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment