protected function shouldReturnEmptyResultSetWithoutExecutedSearch(SearchRequest $searchRequest)
    {
        if ($searchRequest->getRawUserQueryIsNull() && !$this->getInitialSearchIsConfigured()) {
            // when no rawQuery was passed or no initialSearch is configured, we pass an empty result set
            return true;
        }

        if ($searchRequest->getRawUserQueryIsEmptyString() && !$this->typoScriptConfiguration->getSearchQueryAllowEmptyQuery()) {
            // the user entered an empty query string "" or "  " and empty querystring is not allowed
            return true;
        }

        return false;
    }
protected function shouldReturnEmptyResultSetWithoutExecutedSearch(SearchRequest $searchRequest)
    {
        if ($searchRequest->getRawUserQueryIsNull() && !$this->getInitialSearchIsConfigured()) {
            // when no rawQuery was passed or no initialSearch is configured, we pass an empty result set
            return true;
        }

        if ($searchRequest->getRawUserQueryIsEmptyString() && !$this->typoScriptConfiguration->getSearchQueryAllowEmptyQuery()) {
            // the user entered an empty query string "" or "  " and empty querystring is not allowed
            return true;
        }

        return false;
    }
protected function shouldReturnEmptyResultSetWithoutExecutedSearch ( SearchRequest $ searchRequest ) { if ( $ searchRequest -> getRawUserQueryIsNull ( ) && ! $ this -> getInitialSearchIsConfigured ( ) ) { // when no rawQuery was passed or no initialSearch is configured, we pass an empty result set return true ; } if ( $ searchRequest -> getRawUserQueryIsEmptyString ( ) && ! $ this -> typoScriptConfiguration -> getSearchQueryAllowEmptyQuery ( ) ) { // the user entered an empty query string "" or "  " and empty querystring is not allowed return true ; } return false ; }
Evaluates conditions on the request and configuration and returns true if no search should be triggered and an empty
SearchResultSet should be returned.

@param SearchRequest $searchRequest
@return bool
Evaluates conditions on the request and configuration and returns true if no search should be triggered and an empty SearchResultSet should be returned .