Ejemplo n.º 1
0
 /**
  * @param $status Status
  * @return Status
  */
 public function setupSearchIndex(&$status)
 {
     global $IP;
     $module = DatabaseSqlite::getFulltextSearchModule();
     $fts3tTable = $this->db->checkForEnabledSearch();
     if ($fts3tTable && !$module) {
         $status->warning('config-sqlite-fts3-downgrade');
         $this->db->sourceFile("{$IP}/maintenance/sqlite/archives/searchindex-no-fts.sql");
     } elseif (!$fts3tTable && $module == 'FTS3') {
         $this->db->sourceFile("{$IP}/maintenance/sqlite/archives/searchindex-fts3.sql");
     }
     return $status;
 }
Ejemplo n.º 2
0
 /**
  * Whether fulltext search is supported by current schema
  * @return Boolean
  */
 function fulltextSearchSupported()
 {
     return $this->db->checkForEnabledSearch();
 }