cleanupIndex example

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

        return $ids;
    }

    /** * @return void */
    public function cleanupIndexSearchIndex()
    {
        $this->searchIndexer->cleanupIndex();
    }

    /** * @param int|null $offset * @param int|null $limit * * @throws PrivilegeException * * @return void */
    public function indexStream(CustomerStreamEntity $stream$offset = null, $limit = null)
    {
// Update index                         $sqlIndex = implode("\n\nUNION ALL\n\n", $sqlIndex);
                        $sqlIndex = "INSERT IGNORE INTO s_search_index (keywordID, elementID, fieldID)\n\n" . $sqlIndex;

                        $this->connection->executeStatement($sqlIndex);
                        $sqlIndex = [];
                    }
                }
            }
        }

        $this->cleanupIndex();

        $this->cleanupKeywords();
    }

    /** * Updates the last update timestamp in the database */
    private function setNextUpdateTimestamp(): void
    {
        $sql = ' SET @parent = (SELECT id FROM s_core_config_elements WHERE name = \'fuzzysearchlastupdate\'); DELETE FROM `s_core_config_values` WHERE element_id = @parent; INSERT INTO `s_core_config_values` (`element_id`, `shop_id`, `value`) VALUES (@parent, 1, CONCAT(\'s:\', LENGTH(NOW()), \':"\', NOW(), \'";\')); ';
Home | Imprint | This part of the site doesn't use cookies.