anchor.diff:  
   
   %% @doc
  -%% It keeps usefull information for the given stream. It forms a new json object using only these 
  +%% It keeps usefull information for the given stream. It forms a new json object using only these
   %% information and also returns the difference on the scoring of the suggestion
   %% @end
   -spec get_stream_info(Stream::json()) -> {Weight::integer(), Result::json_string()}.
  
positive.code: 
  %% @doc
  %% Updates the suggestion to include information from the new stream. This way we can later
  %% on autocomplete the number of streams for that resource, along with some more information 
  %% about each stream. 
  %% @end
  -spec update_suggestion(Stream::json()) -> ok.
  update_suggestion(Stream) ->
  	
  	%% only for testing
  	erlang:display("run function: update_suggestion/1"),
  	
  	ResourceId = lib_json:get_field(Stream, "resource_id"),
  	case erlastic_search:search(?INDEX, "suggestion", "resource_id:"++ lib_json:to_string(ResourceId)) of
  		{error, _} -> erlang:display("ERROR");
  
negative.code: 						   {"suggest.weight", Weight}
  						  ]
  						 ),
  			case erlastic_search:index_doc(?INDEX, "suggestion", Suggestion) of
  				{error, _Reason} -> erlang:display("Suggestion not saved ");
  				{ok, _} -> 	ok
  			end
  