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
        ]);
    }
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
        ]);
    }
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 ] ) ; }
Handle search submit

@param Request $request
@return Response
Handle search submit