private function isPopularQuery($queryId, $storeId)
    {
        $popularQueryIds = $this->queryCollection
            ->setPopularQueryFilter($storeId)
            ->setPageSize($this->getMaxCountCacheableSearchTerms($storeId))
            ->load()
            ->getColumnValues('query_id');

        return count(array_intersect([$queryId], $popularQueryIds)) > 0 ;
    }
private function isPopularQuery($queryId, $storeId)
    {
        $popularQueryIds = $this->queryCollection
            ->setPopularQueryFilter($storeId)
            ->setPageSize($this->getMaxCountCacheableSearchTerms($storeId))
            ->load()
            ->getColumnValues('query_id');

        return count(array_intersect([$queryId], $popularQueryIds)) > 0 ;
    }
private function isPopularQuery ( $ queryId , $ storeId ) { $ popularQueryIds = $ this -> queryCollection -> setPopularQueryFilter ( $ storeId ) -> setPageSize ( $ this -> getMaxCountCacheableSearchTerms ( $ storeId ) ) -> load ( ) -> getColumnValues ( 'query_id' ) ; return count ( array_intersect ( [ $ queryId ] , $ popularQueryIds ) ) > 0 ; }
Check if a query Id is among the popular query list for a given store.

@param int $queryId The Query Id
@param int $storeId The Store Id

@return bool
Check if a query Id is among the popular query list for a given store .