diff --git a/src/Service/Indexer.php b/src/Service/Indexer.php index d4e8052..91a9ada 100644 --- a/src/Service/Indexer.php +++ b/src/Service/Indexer.php @@ -110,7 +110,12 @@ public function processNode(): void } } - if ($this->getIndexService()->hasIndexingErrors) { + // Check if we can determine errors were encountered during indexing + // and log warning if so. + if ( + property_exists($this->getIndexService(), 'hasIndexingErrors') + && $this->getIndexService()->hasIndexingErrors + ) { Injector::inst()->get(LoggerInterface::class)->warning( '[SEARCH SERVICE] Indexed with errors' );