Index: modules/search/search.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/search/search.install,v
retrieving revision 1.11
diff -u -u -p -r1.11 search.install
--- modules/search/search.install	13 Nov 2007 14:04:08 -0000	1.11
+++ modules/search/search.install	17 Nov 2007 11:32:52 -0000
@@ -55,7 +55,7 @@ function search_schema() {
         'description' => t('Set to force node reindexing.'),
       ),
     ),
-    'indexes' => array('sid_type' => array('sid', 'type')),
+    'unique keys' => array('sid_type' => array('sid', 'type')),
   );
 
   $schema['search_index'] = array(
Index: modules/system/system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.182
diff -u -u -p -r1.182 system.install
--- modules/system/system.install	15 Nov 2007 23:12:38 -0000	1.182
+++ modules/system/system.install	17 Nov 2007 11:32:52 -0000
@@ -4515,7 +4515,7 @@ function system_update_6036() {
       // Since it's possible that some existing sites have duplicates,
       // create the index using the IGNORE keyword, which ignores duplicate errors.
       // However, pgsql doesn't support it
-      $ret[] = update_sql("ALTER IGNORE TABLE {search_index} ADD UNIQUE KEY sid_word_type (sid, word, type)");
+      $ret[] = update_sql("ALTER IGNORE TABLE {search_index} ADD UNIQUE KEY word_sid_type (word, sid, type)");
       $ret[] = update_sql("ALTER IGNORE TABLE {search_dataset} ADD UNIQUE KEY sid_type (sid, type)");
     }
     else {
