mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-23 07:56:12 +01:00
[TASK] Finetune query for document_type instead of regex
This commit is contained in:
parent
519bc7e5b4
commit
028914e789
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
]
|
||||
]
|
||||
]));
|
||||
|
|
Loading…
Reference in a new issue