FW: riakc_pb_socket:search Issue

Muhammad Yousaf muhammad.yousaf at live.com
Mon May 2 15:23:16 EDT 2011

Hi Wilson,
Thanks for replying by DB means Bucket? if so i tried still nothing 

riakc_pb_socket:search(Client,"player", "qname:world1").{ok,[]}

From: mailwilson007 at gmail.com
Date: Mon, 2 May 2011 21:07:43 +0200
Subject: Re: riakc_pb_socket:search Issue
To: muhammad.yousaf at live.com
CC: riak-users at lists.basho.com

Hi,From what i can see and what i have used is u should use your DB name as string not binary.

On Mon, May 2, 2011 at 6:42 PM, Muhammad Yousaf <muhammad.yousaf at live.com> wrote:

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("",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">>},

riakc_pb_socket:search(Client, <<"player">>, "qname:world1").    

{ok,[]}riakc_pb_socket:search(Client, <<"player">>, <<"qname:world1">>).


i am alway getting [] what ever i am searching for 

any idea what i am doing wrong??

thanks in advance

Muhammad Yousaf



riak-users mailing list

riak-users at lists.basho.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110503/918d56a9/attachment.html>

More information about the riak-users mailing list