I'm just testing out riak. I've set the backend to memory, given it 2GB max and enabled search.
I'm using nodejs and simpleriak. I've inserted 100 test objects with the following code:
for ( var i = 0; i < 100; i++ ) {
//add
riak.put({
bucket: 'testy',
key: String(i),
index: { a_bin: 'A' + i },
index: { b_bin: 'B' + i },
data: {
A: "A" + i,
B: "B" + i,
C: "C" + i
}
}, function (err, reply) {
console.log(err, reply);
});
};
I can now successfully get my objects by key from the command line using:
$ curl -v http://localhost:8098/buckets/testy/keys/1
However, I cannot retrieve objects with my 2i:
$ curl -v http://localhost:8098/buckets/testy/index/a_bin/A1
returns
{"keys":[]}
Thoughts? Thanks!