public function initialize()
    {
        $initializationQuery = 'INSERT INTO tx_solr_indexqueue_item (root, item_type, item_uid, indexing_configuration, indexing_priority, changed, errors) '
            . $this->buildSelectStatement() . ',"" '
            . 'FROM ' . $this->type . ' '
            . 'WHERE '
            . $this->buildPagesClause()
            . $this->buildTcaWhereClause()
            . $this->buildUserWhereClause();
        $logData = ['query' => $initializationQuery];

        try {
            $logData['rows'] = $this->queueItemRepository->initializeByNativeSQLStatement($initializationQuery);
        } catch (DBALException $DBALException) {
            $logData['error'] = $DBALException->getCode() . ': ' . $DBALException->getMessage();
        }

        $this->logInitialization($logData);
        return true;
    }
public function initialize()
    {
        $initializationQuery = 'INSERT INTO tx_solr_indexqueue_item (root, item_type, item_uid, indexing_configuration, indexing_priority, changed, errors) '
            . $this->buildSelectStatement() . ',"" '
            . 'FROM ' . $this->type . ' '
            . 'WHERE '
            . $this->buildPagesClause()
            . $this->buildTcaWhereClause()
            . $this->buildUserWhereClause();
        $logData = ['query' => $initializationQuery];

        try {
            $logData['rows'] = $this->queueItemRepository->initializeByNativeSQLStatement($initializationQuery);
        } catch (DBALException $DBALException) {
            $logData['error'] = $DBALException->getCode() . ': ' . $DBALException->getMessage();
        }

        $this->logInitialization($logData);
        return true;
    }
public function initialize ( ) { $ initializationQuery = 'INSERT INTO tx_solr_indexqueue_item (root, item_type, item_uid, indexing_configuration, indexing_priority, changed, errors) ' . $ this -> buildSelectStatement ( ) . ',"" ' . 'FROM ' . $ this -> type . ' ' . 'WHERE ' . $ this -> buildPagesClause ( ) . $ this -> buildTcaWhereClause ( ) . $ this -> buildUserWhereClause ( ) ; $ logData = [ 'query' => $ initializationQuery ] ; try { $ logData [ 'rows' ] = $ this -> queueItemRepository -> initializeByNativeSQLStatement ( $ initializationQuery ) ; } catch ( DBALException $ DBALException ) { $ logData [ 'error' ] = $ DBALException -> getCode ( ) . ': ' . $ DBALException -> getMessage ( ) ; } $ this -> logInitialization ( $ logData ) ; return true ; }
Initializes Index Queue items for a certain site and indexing
configuration.

@return bool TRUE if initialization was successful, FALSE on error.
Initializes Index Queue items for a certain site and indexing configuration .