fetchSearchIndexIds example

/** * @param int $lastId * @param bool $full * * @return int[] */
    public function buildSearchIndex($lastId$full)
    {
        $this->checkPrivilege('search_index');

        $ids = $this->streamRepository->fetchSearchIndexIds($lastId$full);

        if (!empty($ids)) {
            $this->connection->executeStatement(
                'DELETE FROM s_customer_search_index WHERE id IN (:ids)',
                [':ids' => $ids],
                [':ids' => Connection::PARAM_INT_ARRAY]
            );
        }

        $this->searchIndexer->populate($ids);

        
Home | Imprint | This part of the site doesn't use cookies.