Skip to content

Instantly share code, notes, and snippets.

@SeanOC SeanOC/fails.py
Created Aug 17, 2011

Embed
What would you like to do?
Riak enable_search() problem
>>> import riak
>>> from riak.test_server import TestServer
>>>
>>> riak_bin_path = '/usr/local/Cellar/riak/HEAD/bin/'
>>>
>>> server = TestServer(bin_dir=riak_bin_path)
>>> server.prepare()
>>> server.start()
>>>
>>> client = riak.RiakClient(
... port = 9002,
... transport_class = riak.RiakPbcTransport,
... )
>>>
>>> bucket = client.bucket('test')
>>>
>>> bucket.search_enabled()
False
>>>
>>> bucket.enable_search()
True
>>>
>>> bucket.search_enabled()
False
>>>
>>> server.stop()
>>> server.cleanup()
>>>
>>> import riak
>>> from riak.test_server import TestServer
>>>
>>> riak_bin_path = '/usr/local/Cellar/riak/HEAD/bin/'
>>>
>>> server = TestServer(bin_dir=riak_bin_path)
>>> server.prepare()
>>> server.start()
>>>
>>> client = riak.RiakClient(
... port = 9000,
... )
>>>
>>> bucket = client.bucket('test')
>>>
>>> bucket.search_enabled()
False
>>>
>>> bucket.enable_search()
True
>>>
>>> bucket.search_enabled()
True
>>>
>>> server.stop()
>>> server.cleanup()
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.