For those asking for version numbers:

$ riak version
Attempting to restart script through sudo -H -u riak
riak (1.2.1 2012-10-16) Debian x86_64

PS:

I assume all clients are affected as well. I confirmed this for the python client. In addition, if there's a comma in the bucket name or key, riak links decoding will fail for the python client as well. Not sure about the behaviours of other clients as I don't use them myself.

Shuhao

On 12-12-04 05:37 PM, Shuhao wrote:
Hi,

I'm aware that Riak could handle multiple index values... what I didn't
know until this point is that the multiple index values are separated
using the CSV format (specifically, without looking through the riak
source code, I believe it's being separated with ", ")

Here are some sample outputs (I'm using the requests module from
python). Pretend I'm storing an object with a 2i field of test_bin
mapped to a value of "value1, stillvalue1"

 >>> requests.post("http://localhost:8098/riak/test/test";, data="hello
world", headers={"Content-Type": "text/plain", "X-Riak-Index-test_bin":
"value1, stillvalue1"})
<Response [204]>
 >>> r =
requests.get("http://localhost:8098/buckets/test/index/test_bin/value1%2C%20stillvalue1";)

 >>> r.content
'{"keys":[]}'
 >>> r =
requests.get("http://localhost:8098/buckets/test/index/test_bin/value1";)
 >>> r.content
'{"keys":["test"]}'

Cheers,

Shuhao

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to