public function search($query)
    {
        try {
            $request = $this->client->createRequest($query);
            $response = $this->executeRequest($request);
            $this->hasSearched = true;
            $this->responseCache = $response;
        } catch (HttpException $e) {
            $this->handleErrorResponses($e);
        }
        return $response;
    }
public function search($query)
    {
        try {
            $request = $this->client->createRequest($query);
            $response = $this->executeRequest($request);
            $this->hasSearched = true;
            $this->responseCache = $response;
        } catch (HttpException $e) {
            $this->handleErrorResponses($e);
        }
        return $response;
    }
public function search ( $ query ) { try { $ request = $ this -> client -> createRequest ( $ query ) ; $ response = $ this -> executeRequest ( $ request ) ; $ this -> hasSearched = true ; $ this -> responseCache = $ response ; } catch ( HttpException $ e ) { $ this -> handleErrorResponses ( $ e ) ; } return $ response ; }
Performs a search.

@param Query $query
@return ResponseAdapter Solr response
@throws \RuntimeException if Solr returns a HTTP status code other than 200
Performs a search .