anchor.diff:                                              ?RIAK_TYPE_AND_BUCKET,
                                               Oid),
               NewObj = riakc_obj:update_value(Obj, Data),
  -            R = riakc_pb_socket:put(Pid, NewObj),
  -            R
  +            riakc_pb_socket:put(Pid, NewObj)
       end.
   
   %% ====================================================================
  
positive.code:                             list_to_binary(?CONTENT_TYPE_JSON)),
      case riakc_pb_socket:put(Pid, Object) of
          ok ->
              ?nebMsg("ok"),
              {ok, Oid};
          {error, Term} ->
              ?nebFmt("error, Term: ~p", [Term]),
              {error, Term}
      end.
  
  %% @doc Search an index for objects.
  -spec search(string(), cdmi_state()) -> {error, 404|500}|{ok, map()}.
  search(Path, State) when is_binary(Path); is_map(State) ->
      Path2 = binary_to_list(Path),
      search(Path2, State);
  search(Path, State) when is_list(Path); is_map(State) ->
  %    ?nebMsg("Entry"),
      {Pid, _} = State,
      Query = "sp:\\" ++ Path,
      Result =  execute_search(Pid, Query),
      Result.
  
  %% @doc Update an existing key/value pair.
  -spec update(pid(),
               object_oid(),      %% Oid
               map()              %% Data to store
              ) -> ok | {error, term()}.
  
  update(Pid, Oid, Data) when is_pid(Pid); is_binary(Oid) ->
  %    ?nebMsg("Entry"),
      case get(Pid, Oid) of
          {error, Term} ->
  
negative.code: 
  %% @doc Delete an object from riak by bucket type, bucket and key.
  -spec delete(pid(), object_oid()) -> ok | {error, term()}.
  delete(Pid, Oid) when is_pid(Pid), is_binary(Oid) ->
  %    ?nebMsg("Entry"),
      riakc_pb_socket:delete(Pid,
                             ?RIAK_TYPE_AND_BUCKET,
  