Skip to content

riak client add doesnt support bucket type [JIRA: CLIENTS-62] #383

@alirizakeles

Description

@alirizakeles

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions