If this is done incorrectly in Ripple, please file an issue[1] on Github -- or
even better, send a pull-request. We should get this fixed on the wiki[2] ASAP
as well.
Sean Cribbs
Developer Advocate
Basho Technologies, Inc.
http://basho.com/
[1] https://github.com/seancribbs/ripple/issues
[2]
Thanks Jeremiah. Nesting the "and" in another array worked great.
On Mon, Jun 6, 2011 at 1:58 PM, David Mitchell
wrote:
> The "and" based key filter is not working for me either. See:
> http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-June/004432.html
>
>
>
> David
>
>
>
> _
The "and" based key filter is not working for me either. See:
http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-June/004432.html
David
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-u
Ah, yes, how right you are. I was clearly misremembering my earlier thread
about key filter syntax and/or mouthwash consumption...
I ran this through the FilterBuilder and got the following for the filter:
[[:and, [[:tokenize, "-", 1], [:ends_with, "123"
Which caused me to remember that an
Not according to the docs. http://wiki.basho.com/Key-Filters.html
On Sun, Jun 5, 2011 at 8:48 PM, Jeremiah Peschka wrote:
> Shouldn't that last ends_with only be a single nested array, not a doubly
> nested array?
>
> ---
> Jeremiah Peschka
> Founder, Brent Ozar PLF
>
> On Sunday, June 5, 2011
When in doubt, I always look at the spec. In this case:
https://github.com/seancribbs/ripple/blob/master/riak-client/spec/riak/map_reduce/filter_builder_spec.rb
So you'll want to do something roughly like:
filter { Riak::MapReduce::FilterBuilder.new }
filter.tokenize "-", "1" do
eq "test"
end
T
Shouldn't that last ends_with only be a single nested array, not a doubly
nested array?
---
Jeremiah Peschka
Founder, Brent Ozar PLF
On Sunday, June 5, 2011 at 8:40 PM, Ryan Caught wrote:
> Yeah, I did look at the spec. The first two results work fine, it's only the
> "and" based key filter
Yeah, I did look at the spec. The first two results work fine, it's only
the "and" based key filter that throws the error.
On Sun, Jun 5, 2011 at 8:30 PM, Jeremiah Peschka wrote:
> When in doubt, I always look at the spec. In this case:
> https://github.com/seancribbs/ripple/blob/master/riak-c
Hi,
I'm having a problem with Ripple and logical operator key filters. Has
anyone managed to get "and" or "or" key filter combinations working?
When I run the following:
require 'ripple'
client = Riak::Client.new
bucket = client.bucket("test_bucket")
one = Riak::RObject.new(bucket, "test-123")