anchor.diff:                  undefined ->
                           FilteredJson = filter_json(Json, From, Size);
                   UserId ->
  -                        ResQuery = "\"user_id\":" ++ UserId,
  +                        ResQuery = "\"user_id\":" ++ string:to_lower(UserId),
                           FilteredJson = filter_json(Json, ResQuery, From, Size)
           end,
           case erlastic_search:search_json(#erls_params{},?INDEX, "stream", FilteredJson) of % Maybe wanna take more
  
positive.code: delete_resource(ReqData, State) ->
  	case {proplists:get_value('user', wrq:path_info(ReqData)),proplists:get_value('stream', wrq:path_info(ReqData))} of
  		{UserId,undefined} ->
  			case users:delete_streams_with_user_id(UserId) of
  				{error, {Code, Body}} -> 
  					ErrorString = api_help:generate_error(Body, Code),
  					{{halt, Code}, wrq:set_resp_body(ErrorString, ReqData), State};
  				{ok} ->
  					{true,wrq:set_resp_body("{\"message\":\"All streams with user_id:" ++UserId++" are now deleted\"}",ReqData),State}
  			end;
  		{_,Id} ->
  			case delete_data_points_with_stream_id(Id) of 
  
negative.code: 		undefined ->
  			UserAdded = Head;
  		UId ->
  			UserAdded = api_help:add_field(Head,"user_id",string:to_lower(UId))
  	end,
  	case Response of
  		[] ->
  