protected function FuzzySearchService::resetDb in Fuzzy Search 7
Helper method for resetting the original database.
6 calls to FuzzySearchService::resetDb()
- FuzzySearchService::createFieldTable in includes/
service.inc - Helper method for creating the table for a field.
- FuzzySearchService::deleteItems in includes/
service.inc - Deletes indexed items from this server.
- FuzzySearchService::fieldsUpdated in includes/
service.inc - Implements SearchApiServiceInterface::__construct().
- FuzzySearchService::indexItems in includes/
service.inc - Indexes the specified items.
- FuzzySearchService::removeIndex in includes/
service.inc - Implements SearchApiServiceInterface::__construct().
File
- includes/
service.inc, line 1342
Class
- FuzzySearchService
- Search service class using the database for storing index information.
Code
protected function resetDb() {
if (isset($this->previousDb)) {
db_set_active($this->previousDb);
$this->previousDb = NULL;
return TRUE;
}
return FALSE;
}