Hi,
In a riak cluster it is possible to have two bucket with same name but different bucket_type:
<RiakBucket 'maps'/'cars'>
<RiakBucket 'cars'>
When I tried a map reduce as below, i can not choose the bucket which i want to deal with.
query = client.add(bucket_name)
query.map("function(v) { var data = JSON.parse(v.values[0].data); return [[v.key, data]]; }")
query.run()
Here always 'add()' uses default bucket type 'default'/'cars'
I searched docs and many examples, but couldn't find a proper way to point bucket_type/bucket name. If we have already some method, it is needed docs to be updated.
Thanks
Hi,
In a riak cluster it is possible to have two bucket with same name but different bucket_type:
When I tried a map reduce as below, i can not choose the bucket which i want to deal with.
Here always 'add()' uses default bucket type 'default'/'cars'
I searched docs and many examples, but couldn't find a proper way to point bucket_type/bucket name. If we have already some method, it is needed docs to be updated.
Thanks