? 2009-04-16-result.csv
? Cache-query-results.diff
? SolrPhpClient
? Zend
? apachesolr_search.css
? apachesolr_search.substitute.inc
? comment-exclsion-580404-8.patch
? foo.diff
? mass-delete-561082-3.patch
? schema-cvs.xml
? stats.jsp
? stats.xml
? x.php
? y.php
? tests/404.data.txt
? tests/404.headers.txt
? tests/Mock_Apache_Solr_Service.php
? tests/delete.data.txt
? tests/delete.headers.txt
? tests/luke.data.txt
? tests/luke.headers.txt
? tests/search.data.txt
? tests/search.headers.txt
? tests/stats.data.txt
? tests/stats.headers.txt
? tests/update.data.txt
? tests/update.headers.txt
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:37:43 -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;
       }
