function apachesolr_search_cron in Apache Solr Search 6.2
Implementation of hook_cron(). Indexes nodes.
File
- ./
apachesolr_search.module, line 91 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function apachesolr_search_cron() {
$cron_limit = variable_get('apachesolr_cron_limit', 50);
$rows = apachesolr_get_nodes_to_index('apachesolr_search', $cron_limit);
apachesolr_index_nodes($rows, 'apachesolr_search');
}