[TASK] Finetune query for document_type instead of regex

This commit is contained in:
Benjamin Serfhos 2018-10-24 14:08:59 +02:00
parent 519bc7e5b4
commit 028914e789

View file

@ -133,8 +133,8 @@ abstract class AbstractIndexer implements IndexerInterface
$this->logger->info('Start deletion of index.'); $this->logger->info('Start deletion of index.');
$this->connection->deleteIndexByQuery(Query::create([ $this->connection->deleteIndexByQuery(Query::create([
'query' => [ 'query' => [
'regexp' => [ 'term' => [
'search_identifier' => $this->getDocumentName() . '-*' 'search_document_type' => $this->getDocumentName()
] ]
] ]
])); ]));