riakc_pb_socket:search Issue

Muhammad Yousaf muhammad.yousaf at live.com
Mon May 2 12:42:13 EDT 2011


Hi,
I dont know for some reasom my riakc_pb_socket:search command is not working 
this is what i am doing 
$ {ok,Client} =riakc_pb_socket:start_link("127.0.0.1",8087).       {ok,<0.199.0>}$ {ok,Obj}= riakc_pb_socket:get(Client, "player", "yousaf").{ok,{riakc_obj,"player","yousaf",               <<107,206,97,96,96,96,204,96,202,5,82,44,204,210,252,103,                 50,152,18,25,243,88,25,...>>,               [{{dict,3,16,16,8,80,48,                       {[],[],[],[],[],[],[],[],[],[],[],[],...},                       {{[],[],[],[],[],[],[],[],[],[],...}}},                 <<131,108,0,0,0,6,104,2,109,0,0,0,10,112,108,97,121,101,                   114,...>>}],               undefined,undefined}}$  binary_to_term(riakc_obj:get_value(Obj)).[{<<"playername">>,<<"yousaf">>}, {<<"qname">>,<<"world1">>}, {<<"score">>,<<"0">>}, {<<"itemname">>,<<"snowballs">>}, {<<"itemvalue">>,<<"1000">>}, {<<"date">>,<<"2010-04-20">>}]
riakc_pb_socket:search(Client, <<"player">>, "qname:world1").    {ok,[]}riakc_pb_socket:search(Client, <<"player">>, <<"qname:world1">>).{ok,[]}

i am alway getting [] what ever i am searching for 
any idea what i am doing wrong??
thanks in advance
Regards,
Muhammad Yousaf

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110502/78fdf6d7/attachment.html>


More information about the riak-users mailing list