diff options
-rw-r--r-- | lib/Model/Runner.php | 14 | ||||
-rw-r--r-- | lib/Service/IndexService.php | 7 |
2 files changed, 6 insertions, 15 deletions
diff --git a/lib/Model/Runner.php b/lib/Model/Runner.php index d758fac..8a654a0 100644 --- a/lib/Model/Runner.php +++ b/lib/Model/Runner.php @@ -27,7 +27,6 @@ namespace OCA\FullTextSearch\Model; -use OCA\FullTextSearch\Exceptions\InterruptException; use OCA\FullTextSearch\Exceptions\RunnerAlreadyUpException; use OCA\FullTextSearch\Exceptions\TickDoesNotExistException; use OCA\FullTextSearch\Exceptions\TickIsNotAliveException; @@ -53,8 +52,8 @@ class Runner { /** @var string */ private $source; - /** @var bool */ - private $strict = false; +// /** @var bool */ +// private $strict = false; /** @var int */ private $tickId; @@ -117,12 +116,10 @@ class Runner { /** - * @param bool $strict - * * @throws RunnerAlreadyUpException */ - public function start($strict = false) { - $this->strict = $strict; + public function start() { +// $this->strict = $strict; $this->tickId = $this->runningService->start($this->source); } @@ -132,8 +129,7 @@ class Runner { * @param bool $force * * @return string - * @throws InterruptException - * @throws TickDoesNotExistException + * @throws \Exception */ public function updateAction($action = '', $force = false) { $n = ''; diff --git a/lib/Service/IndexService.php b/lib/Service/IndexService.php index 39e8bd0..a0b7db5 100644 --- a/lib/Service/IndexService.php +++ b/lib/Service/IndexService.php @@ -31,7 +31,6 @@ use OCA\FullTextSearch\Db\IndexesRequest; use OCA\FullTextSearch\Exceptions\DatabaseException; use OCA\FullTextSearch\Exceptions\IndexDoesNotExistException; use OCA\FullTextSearch\Exceptions\InterruptException; -use OCA\FullTextSearch\Exceptions\NoResultException; use OCA\FullTextSearch\Exceptions\NotIndexableDocumentException; use OCA\FullTextSearch\Exceptions\TickDoesNotExistException; use OCA\FullTextSearch\IFullTextSearchPlatform; @@ -82,8 +81,7 @@ class IndexService { */ public function __construct( IndexesRequest $indexesRequest, ConfigService $configService, - ProviderService $providerService, - PlatformService $platformService, MiscService $miscService + ProviderService $providerService, PlatformService $platformService, MiscService $miscService ) { $this->indexesRequest = $indexesRequest; $this->configService = $configService; @@ -359,9 +357,6 @@ class IndexService { try { $index = $platform->indexDocument($provider, $document); } catch (Exception $e) { - if ($this->runner->isStrict()) { - throw $e; - } } return $index; |