public function buildSuggestQuery(string $queryString, array $additionalFilters, int $requestedPageId, string $groupList) : SuggestQuery
    {
        $this->newSuggestQuery($queryString)
            ->useFiltersFromTypoScript()
            ->useSiteHashFromTypoScript($requestedPageId)
            ->useUserAccessGroups(explode(',', $groupList))
            ->useOmitHeader();


        if (!empty($additionalFilters)) {
            $this->useFilterArray($additionalFilters);
        }

        return $this->queryToBuild;
    }
public function buildSuggestQuery(string $queryString, array $additionalFilters, int $requestedPageId, string $groupList) : SuggestQuery
    {
        $this->newSuggestQuery($queryString)
            ->useFiltersFromTypoScript()
            ->useSiteHashFromTypoScript($requestedPageId)
            ->useUserAccessGroups(explode(',', $groupList))
            ->useOmitHeader();


        if (!empty($additionalFilters)) {
            $this->useFilterArray($additionalFilters);
        }

        return $this->queryToBuild;
    }
public function buildSuggestQuery ( string $ queryString , array $ additionalFilters , int $ requestedPageId , string $ groupList ) : SuggestQuery { $ this -> newSuggestQuery ( $ queryString ) -> useFiltersFromTypoScript ( ) -> useSiteHashFromTypoScript ( $ requestedPageId ) -> useUserAccessGroups ( explode ( ',' , $ groupList ) ) -> useOmitHeader ( ) ; if ( ! empty ( $ additionalFilters ) ) { $ this -> useFilterArray ( $ additionalFilters ) ; } return $ this -> queryToBuild ; }
Builds a SuggestQuery with all applied filters.

@param string $queryString
@param array $additionalFilters
@param integer $requestedPageId
@param string $groupList
@return SuggestQuery
Builds a SuggestQuery with all applied filters .