original_string: public function indexAction(Request $request)
      {
          $query = $request->query->get('query');
          $limit = $request->query->get('limit');
          $start = $request->query->get('start');
  
          $searchProviders = $this->get('search.providers');
  
          $content = '';
          $content .= '<h3>Registered Search Providers:</h3><table><tr><th>Class</th><th>Resource</th><th>Search key</th></tr>';
          foreach ($searchProviders as $searchProvider) {
              $content .= '<tr>';
              $content .= '<td>'.get_class($searchProvider).'</td>';
              $content .= '<td>'.$searchProvider->getResource().'</td>';
              $content .= '<td>'.$searchProvider->getSearchKey().'</td>';
              $content .= '</tr>';
          }
          $content .= '</table>';
  
          $content .= '<h3>Search:</h3>';
          $content .= '<form><input name="query" value="'.$query.'"/><input type="submit" value="send" /></form>';
  
          if ($query) {
              $content .= '<h3>Results:</h3>';
              $search = $this->getContainer()->get('search.search');
              $results = $search->search($query);
              $content .= '<pre>';
              $content .= print_r($results, true);
              $content .= '</pre>';
          }
  
          return new Response($content);
      }
code: public function indexAction(Request $request)
      {
          $query = $request->query->get('query');
          $limit = $request->query->get('limit');
          $start = $request->query->get('start');
  
          $searchProviders = $this->get('search.providers');
  
          $content = '';
          $content .= '<h3>Registered Search Providers:</h3><table><tr><th>Class</th><th>Resource</th><th>Search key</th></tr>';
          foreach ($searchProviders as $searchProvider) {
              $content .= '<tr>';
              $content .= '<td>'.get_class($searchProvider).'</td>';
              $content .= '<td>'.$searchProvider->getResource().'</td>';
              $content .= '<td>'.$searchProvider->getSearchKey().'</td>';
              $content .= '</tr>';
          }
          $content .= '</table>';
  
          $content .= '<h3>Search:</h3>';
          $content .= '<form><input name="query" value="'.$query.'"/><input type="submit" value="send" /></form>';
  
          if ($query) {
              $content .= '<h3>Results:</h3>';
              $search = $this->getContainer()->get('search.search');
              $results = $search->search($query);
              $content .= '<pre>';
              $content .= print_r($results, true);
              $content .= '</pre>';
          }
  
          return new Response($content);
      }
code_tokens: public function indexAction ( Request $ request ) { $ query = $ request -> query -> get ( 'query' ) ; $ limit = $ request -> query -> get ( 'limit' ) ; $ start = $ request -> query -> get ( 'start' ) ; $ searchProviders = $ this -> get ( 'search.providers' ) ; $ content = '' ; $ content .= '<h3>Registered Search Providers:</h3><table><tr><th>Class</th><th>Resource</th><th>Search key</th></tr>' ; foreach ( $ searchProviders as $ searchProvider ) { $ content .= '<tr>' ; $ content .= '<td>' . get_class ( $ searchProvider ) . '</td>' ; $ content .= '<td>' . $ searchProvider -> getResource ( ) . '</td>' ; $ content .= '<td>' . $ searchProvider -> getSearchKey ( ) . '</td>' ; $ content .= '</tr>' ; } $ content .= '</table>' ; $ content .= '<h3>Search:</h3>' ; $ content .= '<form><input name="query" value="' . $ query . '"/><input type="submit" value="send" /></form>' ; if ( $ query ) { $ content .= '<h3>Results:</h3>' ; $ search = $ this -> getContainer ( ) -> get ( 'search.search' ) ; $ results = $ search -> search ( $ query ) ; $ content .= '<pre>' ; $ content .= print_r ( $ results , true ) ; $ content .= '</pre>' ; } return new Response ( $ content ) ; }
docstring: Return Search results.
  
  @param Request $request
  
  @return Response
  @Route("", name="search_status")
docstring_tokens: Return Search results .