public function getFrequentSearchTermsFromStatisticsByFrequentSearchConfiguration(array $frequentSearchConfiguration) : array
    {
        $queryBuilder = $this->getQueryBuilder();
        $resultSet = $queryBuilder
            ->addSelectLiteral(
                $frequentSearchConfiguration['select.']['SELECT']
            )
            ->from($frequentSearchConfiguration['select.']['FROM'])
            ->add('where', $frequentSearchConfiguration['select.']['ADD_WHERE'], true)
            ->add('groupBy', $frequentSearchConfiguration['select.']['GROUP_BY'], true)
            ->add('orderBy', $frequentSearchConfiguration['select.']['ORDER_BY'])
            ->setMaxResults((int)$frequentSearchConfiguration['limit'])
            ->execute()->fetchAll();

        return $resultSet;
    }
public function getFrequentSearchTermsFromStatisticsByFrequentSearchConfiguration(array $frequentSearchConfiguration) : array
    {
        $queryBuilder = $this->getQueryBuilder();
        $resultSet = $queryBuilder
            ->addSelectLiteral(
                $frequentSearchConfiguration['select.']['SELECT']
            )
            ->from($frequentSearchConfiguration['select.']['FROM'])
            ->add('where', $frequentSearchConfiguration['select.']['ADD_WHERE'], true)
            ->add('groupBy', $frequentSearchConfiguration['select.']['GROUP_BY'], true)
            ->add('orderBy', $frequentSearchConfiguration['select.']['ORDER_BY'])
            ->setMaxResults((int)$frequentSearchConfiguration['limit'])
            ->execute()->fetchAll();

        return $resultSet;
    }
public function getFrequentSearchTermsFromStatisticsByFrequentSearchConfiguration ( array $ frequentSearchConfiguration ) : array { $ queryBuilder = $ this -> getQueryBuilder ( ) ; $ resultSet = $ queryBuilder -> addSelectLiteral ( $ frequentSearchConfiguration [ 'select.' ] [ 'SELECT' ] ) -> from ( $ frequentSearchConfiguration [ 'select.' ] [ 'FROM' ] ) -> add ( 'where' , $ frequentSearchConfiguration [ 'select.' ] [ 'ADD_WHERE' ] , true ) -> add ( 'groupBy' , $ frequentSearchConfiguration [ 'select.' ] [ 'GROUP_BY' ] , true ) -> add ( 'orderBy' , $ frequentSearchConfiguration [ 'select.' ] [ 'ORDER_BY' ] ) -> setMaxResults ( ( int ) $ frequentSearchConfiguration [ 'limit' ] ) -> execute ( ) -> fetchAll ( ) ; return $ resultSet ; }
Regurns a result set by given plugin.tx_solr.search.frequentSearches.select configuration.

@param array $frequentSearchConfiguration
@return array Array of frequent search terms, keys are the terms, values are hits
Regurns a result set by given plugin . tx_solr . search . frequentSearches . select configuration .