public function getSearchStatistics(int $rootPageId, int $days = 30, $limit = 10)
    {
        $now = time();
        $timeStart = (int)($now - 86400 * $days); // 86400 seconds/day
        $limit = (int)$limit;

        return $this->getPreparedQueryBuilderForSearchStatisticsAndTopKeywords($rootPageId, $timeStart, $limit)
            ->execute()->fetchAll();
    }
public function getSearchStatistics(int $rootPageId, int $days = 30, $limit = 10)
    {
        $now = time();
        $timeStart = (int)($now - 86400 * $days); // 86400 seconds/day
        $limit = (int)$limit;

        return $this->getPreparedQueryBuilderForSearchStatisticsAndTopKeywords($rootPageId, $timeStart, $limit)
            ->execute()->fetchAll();
    }
public function getSearchStatistics ( int $ rootPageId , int $ days = 30 , $ limit = 10 ) { $ now = time ( ) ; $ timeStart = ( int ) ( $ now - 86400 * $ days ) ; // 86400 seconds/day $ limit = ( int ) $ limit ; return $ this -> getPreparedQueryBuilderForSearchStatisticsAndTopKeywords ( $ rootPageId , $ timeStart , $ limit ) -> execute ( ) -> fetchAll ( ) ; }
Fetches must popular search keys words from the table tx_solr_statistics

@param int $rootPageId
@param int $days number of days of history to query
@param int $limit
@return mixed
Fetches must popular search keys words from the table tx_solr_statistics