Chris@0: get('index.cron_limit') or with your own Chris@0: * setting. And since the cron run could time out and abort in the middle of Chris@0: * your run, you should update any needed internal bookkeeping on when items Chris@0: * have last been indexed as you go rather than waiting to the end of Chris@0: * indexing. Chris@0: */ Chris@0: public function updateIndex(); Chris@0: Chris@0: /** Chris@0: * Clears the search index for this plugin. Chris@0: * Chris@0: * When a request is made to clear all items from the search index related to Chris@0: * this plugin, this method will be called. If this plugin uses the default Chris@0: * search index, this method can call search_index_clear($type) to remove Chris@0: * indexed items from the search database. Chris@0: * Chris@0: * @see search_index_clear() Chris@0: */ Chris@0: public function indexClear(); Chris@0: Chris@0: /** Chris@0: * Marks the search index for reindexing for this plugin. Chris@0: * Chris@0: * When a request is made to mark all items from the search index related to Chris@0: * this plugin for reindexing, this method will be called. If this plugin uses Chris@0: * the default search index, this method can call Chris@0: * search_mark_for_reindex($type) to mark the items in the search database for Chris@0: * reindexing. Chris@0: * Chris@0: * @see search_mark_for_reindex() Chris@0: */ Chris@0: public function markForReindex(); Chris@0: Chris@0: /** Chris@0: * Reports the status of indexing. Chris@0: * Chris@0: * The core search module only invokes this method on active module plugins. Chris@0: * Implementing modules do not need to check whether they are active when Chris@0: * calculating their return values. Chris@0: * Chris@0: * @return array Chris@0: * An associative array with the key-value pairs: Chris@0: * - remaining: The number of items left to index. Chris@0: * - total: The total number of items to index. Chris@0: */ Chris@0: public function indexStatus(); Chris@0: Chris@0: }