This commit is contained in:
Sami Mazouz 2023-10-18 14:55:12 +01:00
parent 69003373a9
commit fadac0776a
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class ElasticIndex
return [
[
'delete' => [
'_index' => $index(),
'_index' => $index,
'_id' => $model->id,
],
],
@ -73,7 +73,7 @@ class ElasticIndex
$this->handleResponse(
$this->client->bulk([
'index' => $index(),
'index' => $index,
'body' => $body->toArray(),
'refresh' => true,
])