Secondary indexes (2i) in Riak enable you to tag objects stored in Riak, at write time, with one or more queryable values.
Questions tagged [riak-2i]
6 questions
1
vote
1 answer
how to take backup of riak data
Does anybody know how to take backup of riak database. So that I can restore it previous point if anything goes wrong. According to Basho's site, they have suggested that Rsync is the best strategy. I can copy database files by Rsync , but I am…

achan1989
- 101
- 2
- 10
1
vote
0 answers
Riak $bucket index lists non-existent keys
I use a simple secondary index query in Riak, traversing the keys in a bucket:
http://riak01:8098/buckets/my_bucket/index/$bucket/_?max_results=10
There are 10 keys in the result, as expected, such. However, when I use some of these keys in a KV…

Pavel S.
- 11,892
- 18
- 75
- 113
0
votes
1 answer
how to retrieve key from siblings in riak
I have sibling like this "RAtqxEhJvwUGkv54TmRlUaOXwEk" in riak.
Now I want to retrive key of this sibling using curl GET request.
Is their any way to find out key

achan1989
- 101
- 2
- 10
0
votes
1 answer
how to get all bucket types in riak using http get
I know how to list all bucket types using command line .reference http://stackoverflow.com/questions/30785431/how-to-list-all-the-bucket-types-in-riak
But I need it using HTTP call

achan1989
- 101
- 2
- 10
0
votes
1 answer
Riak 2i - Update deletes secondary indexes
I am using oficial Riak Java client v2.0.2. When I update previously written value (with 2i indexes), the secondary indexes are not preserved.
This is how I do update:
Location location = new Location(this.namespace, key);
UpdateValue updateOp = new…

NefariousOctopus
- 807
- 2
- 10
- 18
0
votes
1 answer
Riak 2i - list index values
Is it possible to list all secondary index values previously saved in Riak bucket (leveldb, 2i enabled)? Having the following data in Riak:
curl -XPOST localhost:8098/types/indexes/buckets/users/keys/x -H 'x-riak-my_bin: a'
curl -XPOST…

Pavel S.
- 11,892
- 18
- 75
- 113