On 17 Nov 2011, at 10:20, sergey wrote:
> Thanks Russell!
> I use raw client:
>
> rawClient = new RiakClient("127.0.0.1")
> pbcClient = new PBClientAdapter(rawClient)
> riakObject = RiakObjectBuilder.newBuilder("users",
> userName).withContentType("application/json").withValue(userInfo).build
> pbcClient.store(riakObject)
The builder appends the UTF-8 charset if you call `withValue(String)`. I'm
wondering how this causes a problem. If you do the PUT with curl and set the
content-type to "application/json:charest=utf-8" does it work? What version of
Riak are you using, please? Are you actually using the UTF8 charset?
>
> In store, Content Type application/json;charset=utf-8
> but riak search index set as:
> �hd
> riak_idx_docmusersmuser1lhmvaluem+{"email":"[email protected]","pass":"123123"}lhm+{"email":"[email protected]","pass":"123123"}kjjjjdtrue
>
> if use curl and http and set same as
> curl -X PUT http://localhost:8098/riak/users/user1 -H "Content-Type:
> application/json" -d '{"email":"[email protected]", "pass":"123123"}'
> riak search index set as:
> �hd
> riak_idx_docmusersmuser1lhmemailm[email protected]hm[email protected]jhmpassm123123lhm123123kjjjjdtrue
>
> If use java client, riak search index set all field as one sting and search
> query don't work("email:[email protected]")
>
> How to store with index riak search all fields json?
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com