original_string: public function submitAction(Request $request)
      {
          $template = 'EnhavoSearchBundle:Admin:Search/result.html.twig';
  
          $term = $request->get('q', '');
  
          $filter = new Filter();
          $filter->setTerm($term);
  
          $results = $this->searchEngine->searchPaginated($filter);
          $results = $this->resultConverter->convert($results, $term);
  
          return $this->render($template, [
              'results' => $results,
              'term' => $term
          ]);
      }
code: public function submitAction(Request $request)
      {
          $template = 'EnhavoSearchBundle:Admin:Search/result.html.twig';
  
          $term = $request->get('q', '');
  
          $filter = new Filter();
          $filter->setTerm($term);
  
          $results = $this->searchEngine->searchPaginated($filter);
          $results = $this->resultConverter->convert($results, $term);
  
          return $this->render($template, [
              'results' => $results,
              'term' => $term
          ]);
      }
code_tokens: public function submitAction ( Request $ request ) { $ template = 'EnhavoSearchBundle:Admin:Search/result.html.twig' ; $ term = $ request -> get ( 'q' , '' ) ; $ filter = new Filter ( ) ; $ filter -> setTerm ( $ term ) ; $ results = $ this -> searchEngine -> searchPaginated ( $ filter ) ; $ results = $ this -> resultConverter -> convert ( $ results , $ term ) ; return $ this -> render ( $ template , [ 'results' => $ results , 'term' => $ term ] ) ; }
docstring: Handle search submit
  
  @param Request $request
  @return Response
docstring_tokens: Handle search submit