I installed Riak Search, added a few JSON docs, then install the
search hook for the bucket. Now, here are the questions:
1) How can I list the indexes that have been created
for my bucket?
2) After installing the hook, I can't delete my object
anymore. Here is the error:
7> {ok, P} = test3:init().
{ok,<0.44.0>}
8> riakc_pb_socket:get(P, "user_bucket", "jane").
{ok,{riakc_obj,"user_bucket","jane",
<<107,206,97,96,96,96,204,96,202,5,82,44,108,85,66,103,50,
152,18,25,243,88,25,...>>,
[{{dict,3,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],...},
{{[],[],[],[],[],[],[],[],[],[],...}}},
<<"{\"userid\":\"jane\",\"first_name\":\"Jane\",
\"last_name\":\"Doe\",\"gender\":\"F\",\"joined_"...>>}],
undefined,undefined}}
9> riakc_pb_socket:delete(P, "user_bucket", "jane").
{error,<<"{precommit_fail,notfound}">>}
10> riakc_pb_socket:delete(P, "user_bucket", <<"jane">>).
{error,<<"{precommit_fail,notfound}">>}
I can retrieve the object, but can't delete it. What's is going on?
Thanks
Xiaopong
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com