Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-09-04 16:15:16 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-09-04 16:15:16 +0300
commitf147bc7673ffcf824d848d29363ef258264ec69a (patch)
tree7b758672f09953b82f8b409ff6f9b2a69ab3397b /lib
parent6544f1240f8d5329a28be6b3ead98e6e03c1682e (diff)
no more strict mode
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Model/Runner.php14
-rw-r--r--lib/Service/IndexService.php7
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;