anchor.diff:  					%fetch old suggestion
   					case erlastic_search:search(?INDEX, "suggestion", "resource_id:" ++ binary_to_list(ResourceId)) of
   						{error, _Reason2} -> erlang:diplay("Suggestion not found :S");
  -						{ok, OldSuggestion} -> 
  +						{ok, OldSuggestion} ->
   							StreamList = lib_json:get_field(OldSuggestion, "hits.hits[0]._source.suggest.payload.streams"),
   							case StreamList of
   								undefined ->
  
positive.code: 							NewSugg = lib_json:replace_field(NewStreamList, "suggest.weight", NewWeight)
  					end,
  					Final = lib_json:set_attr(doc,NewSugg),
  					case api_help:update_doc(?INDEX, "suggestion", Id, Final) of 
  						{error, _Reason} -> erlang:display("not updated");
  						{ok, _Json} -> 
  							erlang:display("succeed updating the suggestion!!"),
  							ok 
  					end;
  				_ -> 
  					erlang:display("No suggestion exists for that resource")
  			end
  	end.
  
negative.code: %% @doc == Module for creating, updating and retrieving suggestions ==
  %% @end
  -module(suggest).
  -export([init/1,
  	allowed_methods/2,
  	content_types_provided/2,
  	get_suggestion/2,
  	add_suggestion/2,
  	update_suggestion/1,
  	update_stream/2,
  