? .svn
? 32-char-delta-344249-4.patch
? 32-char-delta-344249-5.patch
? 32-char-delta-344249-6.patch
? autocommit-292662-11.patch
? autocommit-292662-12.patch
? autocommit-292662-12.patch.1
? bugs.txt
? clear-cache-index-355544-3.patch
? commit-after-delete-292662-15.patch
? date-problems-350330-1.patch
? date-problems-350330-2.patch
? fix-language-348920-1.patch
? foo.diff
? foo.php
? form-sort-323015-38.patch
? hl-cleanup-338534-20.patch
? minimal-spelling-303937-29.patch
? minimal-spelling-303937-30.patch
? minimal-spelling-303937-31.patch
? mlt-nodeaccess-348150-11.patch
? name-string-356696-2.patch
? name-string-356696.patch
? negative-fq-348029-3.patch
? node-doc-338534-22.patch
? omit-norms.patch
? query-nodeaccess-handling-348150-5.patch
? readme-292662-13.patch
? readme-292662-14.patch
? schema-303937-22.patch
? separate-limit-359923-1.patch
? solr_hook_user.patch
? solrconfig-303937-22.patch
? solrconfig.xml.txt
? subfq-broken-348150-3.patch
? vocab-names-323015-49.patch
? warnings-355479-1.patch
? weighting-extra-323015-52.patch
? weighting-extra-323015-53.patch
? weighting-extra-323015-54.patch
? xml-303937-23.patch
? xml-changes.diff
? SolrPhpClient/.svn
? SolrPhpClient/Apache/.svn
? SolrPhpClient/Apache/Solr/.svn
? SolrPhpClient/Apache/Solr/Service/.svn
? blocks/.svn
? contrib/.svn
? contrib/apachesolr_attachments/.svn
? contrib/apachesolr_image/.svn
? contrib/apachesolr_mlt/.svn
? contrib/apachesolr_multisitesearch/.svn
? contrib/apachesolr_nodeaccess/.svn
? contrib/apachesolr_nodeaccess/tests/.svn
? tests/.svn
Index: apachesolr.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.module,v
retrieving revision 1.1.2.12.2.87
diff -u -p -r1.1.2.12.2.87 apachesolr.module
--- apachesolr.module	16 Jan 2009 18:42:02 -0000	1.1.2.12.2.87
+++ apachesolr.module	16 Jan 2009 19:54:00 -0000
@@ -50,23 +50,30 @@ function apachesolr_settings() {
     '#title' => t('Solr host name'),
     '#default_value' => variable_get('apachesolr_host', 'localhost'),
     '#description' => t('Host name of your Solr server, e.g. <code>localhost</code> or <code>example.com</code>.'),
-    );
+  );
   $form['apachesolr_port'] = array(
     '#type' => 'textfield',
     '#title' => t('Solr port'),
     '#default_value' => variable_get('apachesolr_port', '8983'),
     '#description' => t('Port on which the Solr server listens. Tomcat is 8080 by default.'),
-    );
+  );
   $form['apachesolr_path'] = array(
     '#type' => 'textfield',
     '#title' => t('Solr path'),
     '#default_value' => variable_get('apachesolr_path', '/solr'),
     '#description' => t('Path that identifies the Solr request handler to be used. Leave this as /solr for now.'),
-    );
-  $options = array();
-  foreach (array(5, 10, 15, 20, 25, 30, 40, 50, 60, 70, 80, 90, 100) as $option) {
-    $options[$option] = $option;
-  }
+  );
+
+  $numbers = drupal_map_assoc(array(10, 20, 50, 100, 200, 500));
+  $form['apachesolr_cron_limit'] = array(
+    '#type' => 'select',
+    '#title' => t('Number of items to index per cron run'),
+    '#default_value' => variable_get('apachesolr_cron_limit', 100),
+    '#options' => $numbers,
+    '#description' => t('The maximum number of items indexed in each pass of a <a href="@cron">cron maintenance task</a>. If necessary, reduce the number of items to prevent timeouts and memory errors while indexing.', array('@cron' => url('admin/reports/status')))
+  );
+
+  $options = drupal_map_assoc(array(5, 10, 15, 20, 25, 30, 40, 50, 60, 70, 80, 90, 100));
   $form['apachesolr_rows'] = array(
     '#type' => 'select',
     '#title' => t('Results per page'),
Index: apachesolr_search.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr_search.module,v
retrieving revision 1.1.2.6.2.58
diff -u -p -r1.1.2.6.2.58 apachesolr_search.module
--- apachesolr_search.module	14 Jan 2009 15:22:28 -0000	1.1.2.6.2.58
+++ apachesolr_search.module	16 Jan 2009 19:54:00 -0000
@@ -48,8 +48,7 @@ function apachesolr_search_menu() {
  * Implementation of hook_update_index().
  */
 function apachesolr_search_update_index() {
-  // TODO - should probably have a separate variable.
-  $cron_limit = variable_get('search_cron_limit', 100);
+  $cron_limit = variable_get('apachesolr_cron_limit', 100);
   $result = apachesolr_get_nodes_to_index('apachesolr_search', $cron_limit);
   apachesolr_index_nodes($result, 'apachesolr_search');
 }
