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