anchor.diff:      parse_datapoints(Rest, lib_json:add_value(FinalJson,"data",Datapoint)).
   
   
  -
  -
  -
   %% @doc
   %% Function: filter_json/1
   %% Purpose: Used to add private filters to the json query
   %% Returns: JSON string that is updated with filter
   %% @end
   filter_json(Json) ->
  -		NewJson = string:sub_string(Json,1,string:len(Json)-1),
  -		"{\"query\":{\"filtered\":"++NewJson++",\"filter\":{\"bool\":{\"must_not\":{\"term\":{\"private\":\"true\"}}}}}}}".
  +        NewJson = string:sub_string(Json,1,string:len(Json)-1),
  +        "{\"query\":{\"filtered\":"++NewJson++",\"filter\":{\"bool\":{\"must_not\":{\"term\":{\"private\":\"true\"}}}}}}}".
   
   
   %% @doc
  
positive.code: %% @end
  -spec allowed_methods(ReqData::tuple(), State::string()) -> {list(), tuple(), string()}.
  allowed_methods(ReqData, State) ->
  		case api_help:parse_path(wrq:path(ReqData)) of                
  				[{"_search"}] ->
  						{['POST','GET'], ReqData, State};
                  [{"_history"}] ->
                          {['POST','GET'], ReqData, State};
  				[error] ->
  						{['POST','GET'], ReqData, State}
  		end.
  
  
  
  
negative.code: %% @end
  -spec content_types_provided(ReqData::tuple(), State::string()) -> {list(), tuple(), string()}.
  content_types_provided(ReqData, State) ->
          {[{"application/json", get_search}], ReqData, State}.
  
  
  %% @doc
  