Possible bug in Python client?

Alex De la rosa alex.rosa.box at gmail.com
Wed Jun 25 09:28:03 EDT 2014


Hi there,

I was testing 2i via PBC on Python and I found a wrong behaviour, this is
my code:

-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------

import riak
client = riak.RiakClient(protocol='pbc',
nodes=[{'host':'127.0.0.1','http_port':8098,'pb_port':8087}])
bucket = client.bucket('accounts')
key = bucket.new('alex', data={"name":"Alex","age":25,"sex":"male"})
key.add_index('age_int', 25)
key.add_index('sex_bin', 'male')
key.store()
results = bucket.get_index('sex_bin', 'male', max_results = 10)
print results.results
if results.has_next_page():

-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------

Thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20140625/508d456f/attachment.html>


More information about the riak-users mailing list