Hi there, I created an index and a MAP bucket-type in the following way:
curl -XPUT "http://x.x.x.x:8098/search/index/ix_users" riak-admin bucket-type create tp_users '{"props": {"allow_mult":true,"search_index":"ix_users","datatype":"map"}}' riak-admin bucket-type activate tp_users Then I saved some data and is working fine; but when I try to delete a key, I get a nasty error; what am I doing wrong?: import riak client = riak.RiakClient(protocol = 'pbc', nodes = [{'host': 'x.x.x.x', 'http_port': 8098, 'pb_port': 8087}]) bucket = client.bucket_type('tp_users').bucket('users') bucket.delete('testkey') Output of the script: Traceback (most recent call last): File "x.py", line 6, in <module> bucket.delete('testkey') File "/usr/local/lib/python2.7/dist-packages/riak/bucket.py", line 539, in delete return self.new(key).delete(**kwargs) AttributeError: 'Map' object has no attribute 'delete' This are my riak and python client versions: ~ # pip show riak --- Name: riak Version: 2.1.0 Location: /usr/local/lib/python2.7/dist-packages Requires: riak-pb, pyOpenSSL ~ # riak version 2.0.2 Thanks, Alex
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com