riak java client

Russell Brown russell.brown at me.com
Thu Nov 17 11:20:22 EST 2011

On 17 Nov 2011, at 16:03, sergey wrote:

> Ok,
> If I do curl -X PUT -H "Content-Type: application/json;charset=utf-8", Riak index for search and search work right.
> I use Riak 1.0.1-1 (riak_1.0.1-1_amd64.deb on Ubuntu).
> I use utf-8 java string.

Yes. We have a bug. Sorry. https://issues.basho.com/show_bug.cgi?id=1288 has the details. I'm working on a patch.

The RJC PB client does not correctly split content-type and charset when it creates the PB message for Riak. As a work around you can

1. Use the HTTP driver
2. manually set the ContentType on the riakObject after building it (riakObject.setContentType(Constants.CTYPE_JSON))

I'll let the list now when the patch is done.



> _______________________________________________
> 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/20111117/6da8ab03/attachment.html>

More information about the riak-users mailing list