Skip to content

Commit 1d27a42

Browse files
committed
🐛 Switch to using clients indicies->delete method rather than bulk.
1 parent 3a58e49 commit 1d27a42

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/ElasticsearchEngine.php

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -293,21 +293,7 @@ public function createIndex($name, array $options = [])
293293
*/
294294
public function deleteIndex($name)
295295
{
296-
$this->elastic->bulk([
297-
'body' => [
298-
[
299-
'delete' => [
300-
'_index' => $name,
301-
/**
302-
* @deprecated Document mapping types scheduled deprecated in
303-
* elasticsearch 6.0 will be removed in 8.0.
304-
* https://bit.ly/2TZVZvq
305-
*/
306-
'_type' => $name,
307-
],
308-
]
309-
]
310-
]);
296+
$this->elastic->indices()->delete(['index' => $name]);
311297
}
312298

313299
/**

0 commit comments

Comments
 (0)