Index: modules/path/path.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/path/path.module,v
retrieving revision 1.149
diff -u -p -r1.149 path.module
--- modules/path/path.module	12 Oct 2008 04:30:06 -0000	1.149
+++ modules/path/path.module	13 Oct 2008 15:58:09 -0000
@@ -182,6 +182,16 @@ function path_nodeapi_delete(&$node, $ar
 }
 
 /**
+ * Implementation of hook_nodeapi_update_index().
+ */          
+function path_nodeapi_update_index(&$node, $arg) {
+  // If the node has a path alias, add it to the search index.
+  if (!empty($node->path) && $node->path != 'node/' . $node->nid) {
+    return '<h2>' . $node->path . '</h2>';
+  }
+}
+
+/**
  * Implementation of hook_form_alter().
  */
 function path_form_alter(&$form, $form_state, $form_id) {
