You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Solr search handler to implement upcoming changes in eZ\Publish\SPI\Search\Handler interface (#49)
* EZP-25088: Modified Solr search engine handler to implement upcoming changes in the eZ\Publish\SPI\Search\Handler interface
* EZP-25088: Modified ezplatform:solr_create_index command to use new version of search engine Handler
@@ -94,15 +95,23 @@ protected function execute(InputInterface $input, OutputInterface $output)
94
95
$row['current_version']
95
96
);
96
97
} catch (NotFoundException$e) {
97
-
$progress->clear();
98
-
$output->write("\r"); // get rid of padding (side effect of displaying progress bar)
99
-
$logger->warning("Could not load current version of Content with id ${row['id']}, so skipped for indexing. Full exception: " . $e->getMessage());
100
-
$progress->display();
98
+
$this->logWarning($output, $progress, "Could not load current version of Content with id ${row['id']}, so skipped for indexing. Full exception: " . $e->getMessage());
// Ignore content objects that have some sort of missing data on it
109
+
$this->logWarning($output, $progress, 'Content with id ' . $content->versionInfo->id . ' has missing data, so skipped for indexing. Full exception: ' . $e->getMessage());
110
+
}
111
+
}
112
+
113
+
if (!empty($documents)) {
114
+
$searchHandler->bulkIndexDocuments($documents);
106
115
}
107
116
108
117
$progress->advance($k);
@@ -113,4 +122,24 @@ protected function execute(InputInterface $input, OutputInterface $output)
0 commit comments