code: public function autocompleteAction(Request $request) {
  		$term = $request->get('term');
  		return new JsonResponse($this->searchService->autocomplete($term, $this->getSuggestionCount()));
  	}
docs: Returns a JSON array of autocompletions for the given term.
  The term can be provided as a GET or POST paramater with the name <em>term</em>
  
  @param Request $request
  @return \Symfony\Component\HttpFoundation\JsonResponse