How to design schema for record search.

Yang Zhenguo yangzhenguo at
Sun Aug 31 14:50:06 EDT 2014

Hi all,

I have a question on record search.

First, the value of my bucket is record.

        user_id = LoginId,
        problem_id = ProblemId,
        language = Language

Secondly, got riakc_obj
RSolution = riakc_obj:new(SolutionBucket, SolutionKey, Solution)

riakc_pb_socket:put(ClientPid, RSolution1)

Howevery, I cant search it via the following command:
riakc_pb_socket:search(Pid, <<"sln_index">>, <<"language:*">>).

Any suggestion?

BTW, I can get the following result:
10> riakc_pb_socket:search(Pid, <<"sln_index">>, <<"*:*">>).


Thanks in advance.

Zhenguo Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list