fix
This commit is contained in:
parent
69003373a9
commit
fadac0776a
|
|
@ -64,7 +64,7 @@ class ElasticIndex
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
'delete' => [
|
'delete' => [
|
||||||
'_index' => $index(),
|
'_index' => $index,
|
||||||
'_id' => $model->id,
|
'_id' => $model->id,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
@ -73,7 +73,7 @@ class ElasticIndex
|
||||||
|
|
||||||
$this->handleResponse(
|
$this->handleResponse(
|
||||||
$this->client->bulk([
|
$this->client->bulk([
|
||||||
'index' => $index(),
|
'index' => $index,
|
||||||
'body' => $body->toArray(),
|
'body' => $body->toArray(),
|
||||||
'refresh' => true,
|
'refresh' => true,
|
||||||
])
|
])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue