diff options
Diffstat (limited to 'lib/Command/Index.php')
-rw-r--r-- | lib/Command/Index.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Command/Index.php b/lib/Command/Index.php index ac7952b..2697a81 100644 --- a/lib/Command/Index.php +++ b/lib/Command/Index.php @@ -350,7 +350,9 @@ class Index extends ExtendedBase { * @throws Exception */ private function testPlatform() { - $platform = $this->platformService->getPlatform(); + $wrapper = $this->platformService->getPlatform(); + $platform = $wrapper->getPlatform(); + if (!$platform->testPlatform()) { throw new Exception('failed platform test.'); } @@ -364,7 +366,9 @@ class Index extends ExtendedBase { * @throws Exception */ private function indexProvider(IFullTextSearchProvider $provider, IndexOptions $options) { - $platform = $this->platformService->getPlatform(); + $wrapper = $this->platformService->getPlatform(); + $platform = $wrapper->getPlatform(); + $platform->initializeIndex(); $provider->onInitializingIndex($platform); |