Index: apachesolr_search.module
===================================================================
--- apachesolr_search.module	(revision 1175)
+++ apachesolr_search.module	(working copy)
@@ -1069,6 +1069,15 @@
 function apachesolr_search_form_search_admin_settings_alter(&$form, $form_state) {
   $form['indexing_throttle']['search_cron_limit']['#options']['0'] = '0';
   ksort($form['indexing_throttle']['search_cron_limit']['#options']);
+
+  if (variable_get('apachesolr_search_make_default', 0)) {
+    $form['indexing_throttle']['search_cron_limit']['#disabled'] = TRUE;
+    $form['indexing_throttle']['search_cron_limit']['#description'] .= ' ' . t('Disabled, because Apache Solr Search is the default.');
+    if (empty($form_state['post'])) {
+      drupal_set_message(t('Apache Solr Search is the default.'), 'warning');
+    }
+  }
+
 }
 
 /**
@@ -1286,6 +1295,18 @@
     // Take account of path changes
     menu_rebuild();
   }
+
+  if ($form_state['values']['apachesolr_search_default_previous'] != variable_get('apachesolr_search_make_default', 0)) {
+    if (variable_get('apachesolr_search_make_default', 0)) {
+      variable_set('apachesolr_search_core_search_cron_limit', variable_get('search_cron_limit', 100));
+      variable_set('search_cron_limit', 0);
+      drupal_set_message(t('You made Apache Solr Search the default. In order to increase cron performance the core search indexer has been turned off.'), 'notice');
+    }
+    else {
+      variable_set('search_cron_limit', variable_get('apachesolr_search_core_search_cron_limit', 100));
+      drupal_set_message(t('Apache Solr Search is not the default anymore. The core search indexer has been turned on.'), 'notice');
+    }
+  }
 }
 
 /**
