public function useInitialQueryFromTypoScript(): QueryBuilder
    {
        if ($this->typoScriptConfiguration->getSearchInitializeWithEmptyQuery() || $this->typoScriptConfiguration->getSearchQueryAllowEmptyQuery()) {
            // empty main query, but using a "return everything"
            // alternative query in q.alt
            $this->useAlternativeQuery('*:*');
        }

        if ($this->typoScriptConfiguration->getSearchInitializeWithQuery()) {
            $this->useAlternativeQuery($this->typoScriptConfiguration->getSearchInitializeWithQuery());
        }

        return $this;
    }
public function useInitialQueryFromTypoScript(): QueryBuilder
    {
        if ($this->typoScriptConfiguration->getSearchInitializeWithEmptyQuery() || $this->typoScriptConfiguration->getSearchQueryAllowEmptyQuery()) {
            // empty main query, but using a "return everything"
            // alternative query in q.alt
            $this->useAlternativeQuery('*:*');
        }

        if ($this->typoScriptConfiguration->getSearchInitializeWithQuery()) {
            $this->useAlternativeQuery($this->typoScriptConfiguration->getSearchInitializeWithQuery());
        }

        return $this;
    }
public function useInitialQueryFromTypoScript ( ) : QueryBuilder { if ( $ this -> typoScriptConfiguration -> getSearchInitializeWithEmptyQuery ( ) || $ this -> typoScriptConfiguration -> getSearchQueryAllowEmptyQuery ( ) ) { // empty main query, but using a "return everything" // alternative query in q.alt $ this -> useAlternativeQuery ( '*:*' ) ; } if ( $ this -> typoScriptConfiguration -> getSearchInitializeWithQuery ( ) ) { $ this -> useAlternativeQuery ( $ this -> typoScriptConfiguration -> getSearchInitializeWithQuery ( ) ) ; } return $ this ; }
Applies the configured initial query settings to set the alternative query for solr as required.

@return QueryBuilder
Applies the configured initial query settings to set the alternative query for solr as required .