Index: modules/search/search.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/search/search.module,v
retrieving revision 1.256
diff -u -F^function -r1.256 search.module
--- modules/search/search.module	6 May 2008 12:18:50 -0000	1.256
+++ modules/search/search.module	11 May 2008 20:34:09 -0000
@@ -425,18 +425,19 @@ function search_index($sid, $type, $text
 
   // Multipliers for scores of words inside certain HTML tags.
   // Note: 'a' must be included for link ranking to work.
-  $tags = array('h1' => 25,
-                'h2' => 18,
-                'h3' => 15,
-                'h4' => 12,
-                'h5' => 9,
-                'h6' => 6,
-                'u' => 3,
-                'b' => 3,
-                'i' => 3,
-                'strong' => 3,
-                'em' => 3,
-                'a' => 10);
+  $tags = variable_get('search_tag_weights', array(
+    'h1' => 25,
+    'h2' => 18,
+    'h3' => 15,
+    'h4' => 12,
+    'h5' => 9,
+    'h6' => 6,
+    'u' => 3,
+    'b' => 3,
+    'i' => 3,
+    'strong' => 3,
+    'em' => 3,
+    'a' => 10));
 
   // Strip off all ignored tags to speed up processing, but insert space before/after
   // them to keep word boundaries.
