riak java client

sergey lunserv at gmail.com
Thu Nov 17 05:20:39 EST 2011

Thanks Russell!
I use raw client:

rawClient = new RiakClient("")
pbcClient = new PBClientAdapter(rawClient)
riakObject = RiakObjectBuilder.newBuilder("users", 

In store, Content Type application/json;charset=utf-8
but riak search index set as:
riak_idx_docmusersmuser1lhmvaluem+{"email":"email at email.com","pass":"123123"}lhm+{"email":"email at email.com","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 at email.com", "pass":"123123"}'
riak search index set as:
riak_idx_docmusersmuser1lhmemailmemail at email.comlhmemail at email.comkjhmpassm123123lhm123123kjjjjdtrue

If use java client, riak search index set all field as one sting and 
search query don't work("email:email at email.com")

How to store with index riak search all fields json?

More information about the riak-users mailing list