Index: apachesolr.index.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.index.inc,v
retrieving revision 1.1.2.10
diff -u -p -r1.1.2.10 apachesolr.index.inc
--- apachesolr.index.inc	8 Oct 2009 11:53:57 -0000	1.1.2.10
+++ apachesolr.index.inc	13 Oct 2009 14:48:10 -0000
@@ -68,7 +68,12 @@ function apachesolr_node_to_document($ni
 
     // Fetch extra data normally not visible, including comments.      
     $extra = array();
+    $exclude_comments = in_array($node->type, variable_get('apachesolr_exclude_comments_types', array()), TRUE);
     foreach (module_implements('nodeapi') as $module) {
+      if ($exclude_comments && $module == 'comment') {
+        // Don't add comments.
+        continue;
+      }
       if ($output = module_invoke($module, 'nodeapi', $node, 'update index', FALSE, FALSE)) {
         $extra[$module] = $output;
       }
Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/README.txt,v
retrieving revision 1.1.2.1.2.28
diff -u -p -r1.1.2.1.2.28 README.txt
--- README.txt	12 Oct 2009 21:20:56 -0000	1.1.2.1.2.28
+++ README.txt	13 Oct 2009 14:48:11 -0000
@@ -128,6 +128,9 @@ behavior:
  - apachesolr_tags_to_index: the list of HTML tags that the module will index
    (see apachesolr_add_tags_to_document()).
 
+ - apachesolr_exclude_comments_types: an array of node types.  Any type listed
+   will have any attached comments excluded from the index.
+
  - apachesolr_ping_timeout: the timeout (in seconds) after which the module will
    consider the Apache Solr server unavailable.
 
