* @deprecated */ class SearchService { const CONFIG_KEY = 'search'; /** * @return Search */ public static function getSearchImplementation() { return ServiceManager::getServiceManager()->get(Search::SERVICE_ID); } /** * Store the search implementation to use * * @param Search $impl */ public static function setSearchImplementation(Search $impl) { return ServiceManager::getServiceManager()->register(Search::SERVICE_ID, $impl); } /** * Runs a full reindexing of the resources * * @return int nr of resources indexed */ public static function runIndexing() { $indexService = ServiceManager::getServiceManager()->get(IndexService::SERVICE_ID); return $indexService->runIndexing(); } }