anchor.diff:  			case lib_json:get_field(Response, "hits.hits[0]._source.resource_id") of
   				RId ->
   					SuggId = lib_json:get_field(Response, "hits.hits[0]._id"),
  -					Json = lib_json:get_field(Response, "hits.hits[0]._source"), 
  +					Json = lib_json:get_field(Response, "hits.hits[0]._source"),
   					UpdatedJson = lib_json:replace_fields(Json, [{"suggest.payload.manufacturer",Manufacturer},{"suggest.payload.model",Model},{"suggest.payload.tags",Tags},{"suggest.payload.pollng_feq",Polling_freq}]),
   					WeightJson = update_score(UpdatedJson),
   					%change input (in case model changed)
   					FinalJson = lib_json:replace_field(WeightJson, "suggest.input",Model),
  -					case erlastic_search:index_doc_with_id(?INDEX, "suggestion", SuggId, FinalJson) of 
  +					case erlastic_search:index_doc_with_id(?INDEX, "suggestion", SuggId, FinalJson) of
   						{error, _Reason} -> erlang:display("Suggestion not saved ");
   						{ok, _} -> 	ok
   					end;
  -				_ -> 
  +				_ ->
   					erlang:display("No suggestion exists for that resource")
   			end
   	end,
  
positive.code: 	case Streams of
  		undefined ->
  			StreamWeight = 0;
  		_ -> 
  			Fun = fun(Stream, Acc) -> 
  					scoring:calc(Stream,stream)+Acc
  			end,
  			StreamWeight = lists:foldr(Fun, 0, Streams)
  
negative.code: 		[{"suggest", "_search"}] ->
  			{['GET'], ReqData, State};
  		[{"suggest", _Field} , {_Term}] ->
  			{['GET'], ReqData, State};
  		[{"suggest", _Term}] ->
  			{['GET'], ReqData, State};
  		[error] ->
  			{[], ReqData, State}
  	end.
  
  
  