concrete/jobs/index_search_all.php
protected function pagesToQueue()
    {
        $qb = $this->connection->createQueryBuilder();

        // Find all pages that need indexing
        $query = $qb
            ->select('p.cID')
            ->from('Pages', 'p')
            ->leftJoin('p', 'CollectionSearchIndexAttributes', 'a', 'p.cID = a.cID')
            ->where('cIsActive = 1')
            ->andWhere($qb->expr()->orX(
                'a.ak_exclude_search_index is null',
                'a.ak_exclude_search_index = 0'
            ))->execute();

        while ($id = $query->fetchColumn()) {
            yield $id;
        }
    }
protected function pagesToQueue()
    {
        $qb = $this->connection->createQueryBuilder();

        // Find all pages that need indexing
        $query = $qb
            ->select('p.cID')
            ->from('Pages', 'p')
            ->leftJoin('p', 'CollectionSearchIndexAttributes', 'a', 'p.cID = a.cID')
            ->where('cIsActive = 1')
            ->andWhere($qb->expr()->orX(
                'a.ak_exclude_search_index is null',
                'a.ak_exclude_search_index = 0'
            ))->execute();

        while ($id = $query->fetchColumn()) {
            yield $id;
        }
    }
protected function pagesToQueue ( ) { $ qb = $ this -> connection -> createQueryBuilder ( ) ; // Find all pages that need indexing $ query = $ qb -> select ( 'p.cID' ) -> from ( 'Pages' , 'p' ) -> leftJoin ( 'p' , 'CollectionSearchIndexAttributes' , 'a' , 'p.cID = a.cID' ) -> where ( 'cIsActive = 1' ) -> andWhere ( $ qb -> expr ( ) -> orX ( 'a.ak_exclude_search_index is null' , 'a.ak_exclude_search_index = 0' ) ) -> execute ( ) ; while ( $ id = $ query -> fetchColumn ( ) ) { yield $ id ; } }
Get Pages to add to the queue.

@return \Iterator
Get Pages to add to the queue .