mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-23 15:16:10 +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->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()
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]));
|
]));
|
||||||
|
|
Loading…
Reference in a new issue