From 0fbc485f1d924028f982fd566d88f9f9280b798f Mon Sep 17 00:00:00 2001 From: Douglas Greenshields Date: Fri, 26 May 2017 14:31:41 +0100 Subject: [PATCH] fix: correct indexing command to correctly reflect whether full update is happening --- Indexer/CorpusIndexingCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Indexer/CorpusIndexingCommand.php b/Indexer/CorpusIndexingCommand.php index c946d9c2..0d2bf25f 100644 --- a/Indexer/CorpusIndexingCommand.php +++ b/Indexer/CorpusIndexingCommand.php @@ -145,7 +145,7 @@ public function __invoke() if (empty($this->corpusName)) { throw new \BadMethodCallException('You need to set a corpus name on the corpus indexing command in order to execute it.'); } - $isFullUpdate = null === $this->deleteQuery; + $isFullUpdate = $this->shouldPreDelete; $this->eventDispatcher->dispatch(SearchEvents::CORPUS_PRE_UPDATE, new CorpusPreUpdateEvent($this->getCorpus(), $isFullUpdate)); $logger = $this->getLogger(); $logger->info(sprintf('Indexing of corpus "%s" started.', $this->getCorpus()->getName()));