diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-07-27 13:07:39 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-07-27 13:07:39 +0300 |
commit | 4ee2433aba6783c2e311d86b54444546d392a4ec (patch) | |
tree | 2c340765ad55cc0df14b8f6a2a9464c5fd73ecac /lib | |
parent | 4618b018bf53906a5670e7fc2f461f1b8f390892 (diff) |
resetIndex/resetIndexAll
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/IFullTextSearchPlatform.php | 4 | ||||
-rw-r--r-- | lib/Service/IndexService.php | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/IFullTextSearchPlatform.php b/lib/IFullTextSearchPlatform.php index 3864ff2..9df0543 100644 --- a/lib/IFullTextSearchPlatform.php +++ b/lib/IFullTextSearchPlatform.php @@ -88,8 +88,10 @@ interface IFullTextSearchPlatform { /** * Reset the indexes + * + * @param string $providerId */ - public function resetIndex(); + public function resetIndex($providerId); /** diff --git a/lib/Service/IndexService.php b/lib/Service/IndexService.php index add11a5..f34ad63 100644 --- a/lib/Service/IndexService.php +++ b/lib/Service/IndexService.php @@ -419,7 +419,7 @@ class IndexService { $platform = $this->platformService->getPlatform(); if ($providerId === '') { - $platform->resetIndex(); + $platform->resetIndex('all'); $this->providerService->setProvidersAsNotIndexed(); $this->indexesRequest->reset(); @@ -431,9 +431,9 @@ class IndexService { foreach ($providers AS $provider) { // TODO: need to specify the map to remove // TODO: need to remove entries with type=providerId - $provider->onResettingIndex($this); +// $provider->onResettingIndex($platform); - $platform->resetIndex(); + $platform->resetIndex($provider->getId()); $this->providerService->setProviderAsIndexed($provider, false); $this->indexesRequest->deleteFromProviderId($provider->getId()); } |