Index: wordfilter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wordfilter/wordfilter.module,v
retrieving revision 1.7.2.9
diff -b -u -p -r1.7.2.9 wordfilter.module
--- wordfilter.module	22 Apr 2008 11:38:18 -0000	1.7.2.9
+++ wordfilter.module	20 May 2008 03:36:53 -0000
@@ -188,6 +188,20 @@ function wordfilter_nodeapi(&$node, $op,
         $node->title = wordfilter_filter_process($node->title);
       }
       break;
+    case 'search result':
+      /**
+       * Core comments module adds comment title and body to
+       * search index for node when 'update index' operation
+       * is invoked in hook_nodeapi. The comment subject
+       * and body are not able to be filtered prior to inserting
+       * into the search index for the node. So instead we
+       * have to filter the node body on 'search result' operation
+       * of hook_nodeapi. 
+       */ 
+      if (variable_get('wordfilter_comment_title', TRUE)) {
+        $node->body = wordfilter_filter_process($node->body);
+      }
+      break;
   }
 }
 
