Unable to use Riak Search in Python Client with Protocol Buffers

Mark Phillips mark at basho.com
Wed Jun 6 10:58:48 EDT 2012


Also, you can keep an eye on this issue here:

https://github.com/basho/riak_pb/issues/5

Mark

On Wed, Jun 6, 2012 at 10:32 AM, Mark Phillips <mark at basho.com> wrote:

> Hi There,
>
> 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 [1] or to set the bucket property via the HTTP API [2] and then switch over to using PBC.
>
> Hope that helps. Sorry for the inconvenience.
>
> Mark
>
> [1] http://wiki.basho.com/Riak-Search---Indexing-and-Querying-Riak-KV-Data.html#Setting-up-Indexing
> [2] http://wiki.basho.com/HTTP-Set-Bucket-Properties.html
>
>
>
>
> On Mon, May 28, 2012 at 10:31 PM, mine name <ae10b057 at hotmail.com> wrote:
>
>>  Hi
>> 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
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120606/4699f5dd/attachment.html>


More information about the riak-users mailing list