Run clearSearchIndex when mysql in rebuildTextIndex
authoraddshore <addshorewiki@gmail.com>
Tue, 27 Jan 2015 18:22:07 +0000 (10:22 -0800)
committeraddshore <addshorewiki@gmail.com>
Tue, 27 Jan 2015 18:22:07 +0000 (10:22 -0800)
Bug: T64276
Change-Id: If86fe65dbbc04e4d83882155ec50375f9e179581

maintenance/rebuildtextindex.php

index bc85c66..e29d89e 100644 (file)
@@ -70,6 +70,7 @@ class RebuildTextIndex extends Maintenance {
 
                if ( $this->db->getType() == 'mysql' ) {
                        $this->dropMysqlTextIndex();
+                       $this->clearSearchIndex();
                        $this->populateSearchIndex();
                        $this->createMysqlTextIndex();
                } else {