From 028914e7899da245668fe3bf817b73b0a837d52f Mon Sep 17 00:00:00 2001 From: Benjamin Serfhos Date: Wed, 24 Oct 2018 14:08:59 +0200 Subject: [PATCH] [TASK] Finetune query for document_type instead of regex --- Classes/Domain/Index/AbstractIndexer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Domain/Index/AbstractIndexer.php b/Classes/Domain/Index/AbstractIndexer.php index 5fab1a9..ddaa54a 100644 --- a/Classes/Domain/Index/AbstractIndexer.php +++ b/Classes/Domain/Index/AbstractIndexer.php @@ -133,8 +133,8 @@ abstract class AbstractIndexer implements IndexerInterface $this->logger->info('Start deletion of index.'); $this->connection->deleteIndexByQuery(Query::create([ 'query' => [ - 'regexp' => [ - 'search_identifier' => $this->getDocumentName() . '-*' + 'term' => [ + 'search_document_type' => $this->getDocumentName() ] ] ]));