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