You are here

public function FuzzySearchService::preDelete in Fuzzy Search 7

Implements SearchApiServiceInterface::__construct().

By default, deletes all indexes from this server.

Overrides SearchApiAbstractService::preDelete

File

includes/service.inc, line 91

Class

FuzzySearchService
Search service class using the database for storing index information.

Code

public function preDelete() {
  if (empty($this->options['indexes'])) {
    return;
  }
  foreach ($this->options['indexes'] as $index) {
    foreach ($index as $field) {
      db_drop_table($field['table']);
    }
  }
}