Unable to use Riak Search in Python Client with Protocol Buffers
mark at basho.com
Wed Jun 6 10:32:52 EDT 2012
So the PBC API is lagging behind the HTTP API a bit at the moment. One
of the shortcomings is the support for setting bucket properties
(which means you can't enable search through the PBC API at the
moment). We do, however, have plans to bring the PBC API to feature
parity with its RESTful counterpart in the not-so-distant future.
That said, you can still *use* Search with the PBC API. You just have
to enable it differently. The two options are to set up a bucket to be
indexed via the command line  or to set the bucket property via the
HTTP API  and then switch over to using PBC.
Hope that helps. Sorry for the inconvenience.
On Mon, May 28, 2012 at 10:31 PM, mine name <ae10b057 at hotmail.com> wrote:
> I am trying to use Riak Search with the Python client.
> I am able to use search if I use the Http interface, but not if i use
> Protocol buffers. If I create a RiakClient using RiakPbcTransport,
> bucket.enable_search() returns true but if I call bucket.search_enabled()
> after that, it returns false. Searches always give empty results. Other
> than this I am able to use to RiakClient with RiakPbcTransport.
> Any idea what I am doing wrong?
> Thank you.
> riak-users mailing list
> riak-users at lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users