anchor.diff:      proplists:get_value(<<"_yz_rk">>, X)
     end, KeysExt)};
   get_keys(Conn, Conditions, Bucket, Max, Skip, Sort) ->
  -  lager:info("~p", [build_search_query(Conditions)]),
     {ok, {search_results, KeysExt, _, _}} = riakc_pb_socket:search(
       Conn, list_to_binary(Bucket), list_to_binary(build_search_query(Conditions)), [{rows, Max}, {start, Skip}, {sort, Sort}]),
     {ok, lists:map(fun ({_,X}) ->
  
positive.code:     "\"" ++ lists:flatten(io_lib:format("~4w-~2..0w-~2..0wT~2..0w:~2..0w:~2..0wZ",
          [Year,Month,Day,Hour,Min,Sec])) ++ "\"".
  
  check_key(id, V) ->
      {_, _, RK} = infer_type_from_id(V),
      {'_yz_rk' , RK};
  
negative.code: % this is a stub just to make the tests runable
  count(Conn, Type, Conditions) ->
    Bucket = type_to_bucket_name(Type),
    {ok, {search_results, _, _, Count}} = case Conditions of
                                            [] ->  riakc_pb_socket:search(Conn, list_to_binary(Bucket),
                                              list_to_binary("_yz_id:*"),
  