argument('dataset'); $dataset = Dataset::find($datasetId); // $this->info($dataset->authors->implode('full_name', ', ')); try { // Opus_Search_Service::selectIndexingService('onDocumentChange') $service = new SolariumAdapter("solr", config('solarium')); $service->addDatasetsToIndex($dataset); } catch (Exception $e) { $this->error(__METHOD__ . ': ' . 'Indexing document ' . $dataset->id . ' failed: ' . $e->getMessage()); } return 0; } }