protected function doASearch($query, $searchRequest): ResponseAdapter
    {
        // the offset mulitplier is page - 1 but not less then zero
        $offsetMultiplier = max(0, $searchRequest->getPage() - 1);
        $offSet = $offsetMultiplier * (int)$searchRequest->getResultsPerPage();

        $response = $this->search->search($query, $offSet, null);
        if($response === null) {
            throw new SolrIncompleteResponseException('The response retrieved from solr was incomplete', 1505989678);
        }

        return $response;
    }
protected function doASearch($query, $searchRequest): ResponseAdapter
    {
        // the offset mulitplier is page - 1 but not less then zero
        $offsetMultiplier = max(0, $searchRequest->getPage() - 1);
        $offSet = $offsetMultiplier * (int)$searchRequest->getResultsPerPage();

        $response = $this->search->search($query, $offSet, null);
        if($response === null) {
            throw new SolrIncompleteResponseException('The response retrieved from solr was incomplete', 1505989678);
        }

        return $response;
    }
protected function doASearch ( $ query , $ searchRequest ) : ResponseAdapter { // the offset mulitplier is page - 1 but not less then zero $ offsetMultiplier = max ( 0 , $ searchRequest -> getPage ( ) - 1 ) ; $ offSet = $ offsetMultiplier * ( int ) $ searchRequest -> getResultsPerPage ( ) ; $ response = $ this -> search -> search ( $ query , $ offSet , null ) ; if ( $ response === null ) { throw new SolrIncompleteResponseException ( 'The response retrieved from solr was incomplete' , 1505989678 ) ; } return $ response ; }
Executes the search and builds a fake response for a current bug in Apache Solr 6.3

@param Query $query
@param SearchRequest $searchRequest
@return ResponseAdapter
Executes the search and builds a fake response for a current bug in Apache Solr 6 . 3