You are here

function apachesolr_batch_index_remaining in Apache Solr Search 6.2

Submit a batch job to index the remaining, unindexed content.

2 calls to apachesolr_batch_index_remaining()
apachesolr_drush_solr_index in drush/apachesolr.drush.inc
apachesolr_index_action_form_submit in ./apachesolr.admin.inc
Submit function for the index action form.

File

./apachesolr.admin.inc, line 828
Administrative pages for the Apache Solr framework.

Code

function apachesolr_batch_index_remaining() {
  $batch = array(
    'operations' => array(
      array(
        'apachesolr_batch_index_nodes',
        array(),
      ),
    ),
    'finished' => 'apachesolr_batch_index_finished',
    'title' => t('Indexing'),
    'init_message' => t('Preparing to submit content to Solr for indexing...'),
    'progress_message' => t('Submitting content to Solr...'),
    'error_message' => t('Solr indexing has encountered an error.'),
    'file' => drupal_get_path('module', 'apachesolr') . '/apachesolr.admin.inc',
  );
  batch_set($batch);
}