X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/46c01ecba25e5e925e72f65b182fa94a1fa17703..refs/pull/716/head:/app/Console/Commands/RegenerateSearch.php diff --git a/app/Console/Commands/RegenerateSearch.php b/app/Console/Commands/RegenerateSearch.php index 35ecd46c0..1a0005544 100644 --- a/app/Console/Commands/RegenerateSearch.php +++ b/app/Console/Commands/RegenerateSearch.php @@ -19,7 +19,7 @@ class RegenerateSearch extends Command * * @var string */ - protected $description = 'Command description'; + protected $description = 'Re-index all content for searching'; protected $searchService; @@ -44,6 +44,7 @@ class RegenerateSearch extends Command $connection = \DB::getDefaultConnection(); if ($this->option('database') !== null) { \DB::setDefaultConnection($this->option('database')); + $this->searchService->setConnection(\DB::connection($this->option('database'))); } $this->searchService->indexAllEntities();